Error in Euphoria compiler?
- Posted by David <dcuny at lanset.com> Jun 06, 2004
- 472 views
I noticed a discrepancy between how the interpreter and compiler treat sequences in tests. For example:
if "this is a sequence" then puts( 1, "it's true" ) else puts( 1, "it's false" ) end if
Running under the interpreter, it throws a bad type error. The compiler figures out that it's not an integer or atom, but instead of throwing a type error, it just evaluates it as false. -- David Cuny