# "helllooo" foo
prints #foo
is this correct?
Am 29.04.2010 18:15, schrieb Igor Stasenko:
# "helllooo" foo
prints #foo
is this correct?
That depends on the definition of "correct". Scanner allows any separator (which is whitespace or comment) between # and the following stuff. So #
foo would also print #foo.
The various syntax diagrams you will find generously omit whitespace handling, so it is probably left to the implementor to decide whether whitespace is acceptable after the leading #. I would prefer if if wasn't.
Cheers, Hans-Martin
squeak-dev@lists.squeakfoundation.org