Re: Translator type-checking error

new topic     » goto parent     » topic index » view thread      » older message » newer message

Andy Serpa writes:
> integer x
>
> x = 4.53
> ? x
>
> stops with a type-check error in the interpreter, as it should.
> 
> But using the translator, it simply truncates the decimal part, and 
> assigns 4 to x.  No crash.

The Translator does not do run-time error checking 
(except in a few rare cases). The Translator assumes that 
your program will run correctly using the Interpreter,
i.e. there are no type_check errors.
The main purpose of the Translator is to give you a fast running
executable. If you have a type_check error, anything could happen -
a crash, the wrong result, the correct result, anything.
Use the Interpreter for debugging.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu