Is it a bug or a feature?

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

The following piece of code:

include get.e
integer i,j,e25
atom c

e25=1
i=3j=2  --line1
c=3.0e25=0   --line2
?i ?j ?c ?e25
i=wait_key()

prints out:
3
2
0
1

	This raises two questions:
1/ Is the ability to forget whitespace between some statements (when
there's a clear boundary) a bug or a feature?
2/ If it is a(n undocumented) feature, then the same behaviour could be
expected from line1 and line2 (would yield c=3.0 and e25=0). Instead,
the parsing of real numbers comes in the way. This difference in
decoding looks like a bug, IMO.

	Or did I overlook anything?

	CChris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu