Eliminating assignments and variable syntax (accessors)
Stefan Matthias Aust
sma at netsurf.de
Mon Aug 2 21:10:59 UTC 1999
>But sometimes we MUST be able to articulate precisely this function.
Two possible solutions....
1) Use a notation of special accessor primitives. For example
People don't have to look into these accessors at all. The browser can even
suppress them. This should be very easy to implement. Actually, I think,
the current compiler already detects accessor methods and marks them as
2) Use a different syntax. For example
#<instvar> := anObject
To omit this ugliness, the system could automagically provide a set of
basicInstvar and basicInstvar: methods for direct access which could be
called if you want to overwrite the normal methods.
Stefan Matthias Aust // Bevor wir fallen, fallen wir lieber auf.
More information about the Squeak-dev