[OT] Writing a parser for BASIC in Smalltalk/Squeak ? (<CSOTD> included)

Wolfgang Eder eder.wolfgang at aon.at
Thu Jan 10 15:49:27 UTC 2002


Tim wrote...
> Expressions in () are supposed to be _completed_ before the rest of the
> expression is executed.

that would mean that:

self foo: self barOne with: self barTwo.

would evaluate differently than:

self foo: self barOne with: (self barTwo).

wouldn't it?
IMHO I find the "left to right" rule easier to grasp...

If one does think that the construct from previous threads:

m + (m := n)

is evil (I don't), then maybe it would be better to disallow the result 
of an assignment to be used as an argument in a message send.
I would still like to be able to do
a := b := c := 1.
though.

Cheers,
Wolfgang

<csotd>
    self become: super.
</csotd>






More information about the Squeak-dev mailing list