Project-SnowBall icon indicating copy to clipboard operation
Project-SnowBall copied to clipboard

compile treats series of expressions differently from regular interpretation

Open meijeru opened this issue 13 years ago • 1 comments

See these results of the interpreter:

>> compile [1 2 3]
== "123"
>> 1 2 3
== 3

I would expect the result of compile to be either "3", or "1;2;3", but not "123"

meijeru avatar Jan 09 '12 12:01 meijeru

The current compiler is "stupid". It should probably signal that case as an error. You will probably find many other cases like that.

I don't have a precise ETA for the "real" compiler, but that's what I'm working on right now, so it only depends on my free time. In any case, thanks for testing it!

giesse avatar Jan 09 '12 14:01 giesse