1. runtime error??

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

new topic     » topic index » view message » categorize

2. Re: runtime error??

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu