Error in Euphoria compiler?

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu