That crazy dot idea
Bob Arning
arning at charm.net
Sat Mar 20 20:40:01 UTC 1999
On Sat, 20 Mar 1999 20:22:18 +0100 Stefan Matthias Aust <sma at mail.netsurf.de> wrote:
>Attached are some change sets which add a DotCompiler compiler class that
>allows you to use "object.name" for accessing a name aspect of that object
>and (even better IMHO) "object.name := value" for setting that aspect. Just
>try it out, if you like.
Stefan,
If I try the following method
'From Squeak 2.2beta of Sept 16, 1998 on 20 March 1999 at 3:14:10 pm'!
!DotTest methodsFor: 'examples' stamp: 'RAA 3/20/1999 15:12'!
example3
a _ 1.
b _ self.
c_b.a.
a_b.a_3.
^{a. b. c}
! !
Vanilla Squeak gives:
DotTest new example3 ==> (3 a DotTest a DotTest )
While the DotCompiler produces:
DotTest new example3 ==> (a DotTest a DotTest 1 )
which is difficult to understand. I would have expected (3 a DotTest 1 )
It also points out that the current compiler doesn't require a lot of white space to do its job. This may cause some confusion if coding styles vary as they tend to.
Cheers,
Bob
More information about the Squeak-dev
mailing list
|