About method literals

Henrik Gedenryd h.gedenryd at open.ac.uk
Thu May 9 14:50:25 UTC 2002


Bob Arning wrote:

> Because the Association in each case is the same one. It is, in fact, the
> Association that was obtained from Smalltalk when the method was compiled.
> Being the same is what allows changes to global variables (like classes) to be
> known instantly by all methods that reference them.
> 

..and it is absolutely crucial to the system that it is kept that way, and
this fact is not stated anywhere in the image, but sprinkled throughout a
few dozen places. You only get it once you've seen enough places where code
deals with Associations. I had quite a few problems getting that to work
correctly.

Henrik




More information about the Squeak-dev mailing list