Eliminating assignments and variable syntax (accessors)

Patrick Logan patrickl at gemstone.com
Mon Aug 2 21:49:00 UTC 1999


Marcel Weiher writes:
 > 
 > I think there is some misunderstanding here.  The visible change for  
 > (reading) accessors/var-access would be exactly nil, nada, zip,  
 > zilch, nothing.  To illustrate, before:
 > 
 > 	myInstanceVar doSomething.
 > 
 > after:
 > 
 > 	myInstanceVar doSomething.
 > 
 > The difference is that right now, this expression is always treated
 > as directly accessing the variable, while with the proposal, it
 > would be treated as calling the accessor (which is optimized away
 > again if, for example, there is no accessor).  So the *visible*
 > change is really very, very minimal.

What does the following do?

    ^myInstanceVar

Does it answer the value of the variable or does it answer the
variable itself?

Agh.

-- 
Patrick Logan                 mailto:patrickl at gemstone.com
Voice 503-533-3365            Fax   503-629-8556
Gemstone Systems, Inc         http://www.gemstone.com





More information about the Squeak-dev mailing list