[BUG] nil ~= 1and: [1 isNil] is parsed+compiled without complaint

nicolas cellier ncellier at ifrance.com
Thu Jun 22 19:58:55 UTC 2006


Le Jeudi 22 Juin 2006 11:07, Mathieu SUEN a écrit :
> 2006/6/22, Klaus D. Witzel <klaus.witzel at cobss.com>:
> > This bug is reproducible in 3.7/8/9, entered
> >
> > - http://bugs.impara.de/view.php?id=3836
> >
> > /Klaus
>
> Yes is strange but the message can't start with a number so i think
> the lexical scanner return the good lexem.

Agree with Mathieu, you would even write it without any space
    nil~=1and:[1isNil]
that it would still work...
An identifier cannot begin with a digit, thus neither the Scanner nor the 
Parser does see any ambiguity in this expression, though it is not really 
readable with human eyes...

To me, this feature is good for binary messages like (a+b) that do not need 
spaces to be readable, and less good for unary or keyword messages, though 
the Complex (3+2i) is perfectly readable... But i would not call that a bug. 
You are free to better format your code.

Nicolas




More information about the Squeak-dev mailing list