Re: Translator type-checking error
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
|
Not Categorized, Please Help
|
|