Auto Generation of Getters/Setters

Stewart MacLean stewart.maclean at nzhis.govt.nz
Thu Nov 18 02:15:41 UTC 1999


Hi Tim (and others on this thread)

[snip]

Aaahh - that trick! Thats what I'm missing!

Thanks,

Stewart MacLean

> The Squeak implementation of auto-accessors is independent of the 
> compiler; it works by intercepting the "doesNotUnderstand:" 
> message and 
> determining whether the message could be satisfied by a 
> simple accessor.  
> If so (and if the autoAccessors preference is set), it will 
> generate the 
> appropriate accessor and continue.
> 
> So you simply need to run some code using your new class, and 
> have the 
> accessors dynamically generated.
> 
>      -- Tim Olson
> 





More information about the Squeak-dev mailing list