binary selectors ambiguity and space

nicolas cellier ncellier at ifrance.com
Mon May 15 22:37:48 UTC 2006


Le Mardi 16 Mai 2006 00:11, Andreas Raab a écrit :
> Stephan Rudlof wrote:
> > NCITS J20 DRAFT December, 1997 33 of ANSI Smalltalk Standard revision
> > 1.9; in short:
> > - 'White space is allowed between the '-' and the <number>' for a
> > numeric literal; and
> > - 'If a negative <number literal> follows a binary selector there must
> > intervening white space.'
>
> Just out of curiosity, which of the Smalltalks that claim to be ANSI
> compliant actually implement the above? A dead giveaway would probably
> be Number>>#@- (except that according to ANSI this requires spaces, too,
> right? right??? ;-) so can anyone confirm which Smalltalks out there
> actually compile according to those rules? Briefly checking VW shows it
> doesn't, neither does Squeak. What about others?
>
> Cheers,
>    - Andreas

For 1 at -2, gnu-smalltalk 2.1.9 does interpret (1) @- (2)
But it cannot handle (-    1).

Nicolas




More information about the Squeak-dev mailing list