1. runtime error??
- Posted by "Kat" <gertie at visionsix.com> Oct 30, 2004
- 435 views
RobC, How is this a runtime error that cannot be caught at "compile" time , using the interpreter? Syntax error - expected to see possibly ')', not 'then' if not equal(junk[length(junk)],data[loop] then Kat
2. Re: runtime error??
- Posted by Robert Craig <rds at RapidEuphoria.com> Oct 30, 2004
- 400 views
Kat wrote: > RobC, > > How is this a runtime error that cannot be caught at "compile" time , using > the interpreter? > > Syntax error - expected to see possibly ')', not 'then' > if not equal(junk[length(junk)],data[loop] then It's a compile-time error. In 2.4 and earlier, the interpreter starts executing top-level statements as soon as it sees them, so maybe it executed code for a while before moving on and seeing the syntax error. In 2.5 the whole program is parsed before execution starts. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com