Islands for Squeak3.4 and beyond
lex at cc.gatech.edu
Sun Feb 23 12:21:31 UTC 2003
Daniel Vainsencher <danielv at netvision.net.il> wrote:
> Like I mentioned in the context of the Traits work, this should not be
> hard to work around. The temporary, ugly hack is to add a class variable
> that will hold an IdentityDictionary from instances of ClassDescription
> to the values of the desired variables. Create accessor methods in the
> instance side that actually access the class variable, and when we have
> CB fixed, move the variable from class-side to instance-side.
That's a terrific idea. The penalty may not even have a noticable
effect. The table is only checked once per time a method is compiled,
as far as I can remember. A different mechanism is used when restricted
classes decide which methods may be invoked.
I'm still dying to know why PrivilageMtehods.cs *failed*. It's a short
changeset, though, so duplicating it to use the above technique
shouldn't take tooooo long.
More information about the Squeak-dev