[squeak-dev] Re: Assignment vs binary selector

Eliot Miranda eliot.miranda at gmail.com
Sat Nov 22 18:44:38 UTC 2008


On Fri, Nov 21, 2008 at 3:39 AM, Paolo Bonzini <bonzini at gnu.org> wrote:

> Igor Stasenko wrote:
> > One more thing which i discovered in current parser:
> >
> > #$A inspect
> >
> > returns a character, not symbol. Is this correct to the syntaxt rules?
>
> It should be a syntax error, period.  Like
>
> > a :== 5
>
> should.
>
> One idea I was toying with was to allow . in binary selectors, except
> for the special #. of course; this goes along with the idea of
> considering . to be a statement terminator only if not followed by
> whitespace (avoiding the unintuitive behavior of {1.0.2.0}).  For example,
>
> 1..5 do: [ :i | Transcript show: i ]


+1000

Yes!! Yes!! Yes!!

etc...


>
>
> Paolo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20081122/56cf39ab/attachment.htm


More information about the Squeak-dev mailing list