[Newcompiler] Fwd: About NewCompiler double-bar
Mathieu Suen
mathk.sue at gmail.com
Thu May 24 09:11:16 UTC 2007
Mth
Begin forwarded message:
> From: nicolas cellier <ncellier at ifrance.com>
> Date: May 24, 2007 12:22:32 AM CEDT
> To: squeak-dev at lists.squeakfoundation.org
> Subject: About NewCompiler double-bar
> Reply-To: The general-purpose Squeak developers list <squeak-
> dev at lists.squeakfoundation.org>
>
>
> NewCompiler accepts the double bar binary message as a valid
> selector #||
>
> This is not ambiguous with an empty literal declaration that always
> happen before an expression.
>
> If i tried this, it works perfectly:
> ClosureCompiler evaluate: '[:x| ||]'. [] in UndefinedObject>>DoIt
> {[:t1 | nil]}
>
> But fails without the space:
> ClosureCompiler evaluate: '[:x|||]'.
> [:xSmaCCParserError: Token not expected ->|||] HUH?
>
> Concouring for the most minor bug one ever care of in the world!
>
> Nicolas
>
>
More information about the Newcompiler
mailing list