An useful snip (maybe)

Lic. Edgar J. De Cleene edgardec2001 at yahoo.com.ar
Sat Mar 19 09:11:45 UTC 2005


On [DATE], "[NAME]" <[ADDRESS]> wrote:

> Hmm... A small trip to CompiledMehods? Okay. Do
> (SequenceableCollection class methodDict at: #streamContents:) inspect.
> You should see the 'CompiledMethod Inspector' coming up. Open a Browser
> on the Method. When you select 'literal2' in the Inspector, you should
> see #WriteStream - that is the inspector representation of a
> ReadOnlyVariableBinding.
> Every pointer (I learned this by examination, not by reading the papers)
> to an object in a CompiledMethod is represent by either a
> ReadOnlyVariableBinding or an Association. They are described at
> http://people.squeakfoundation.org/person/maf/diary.html?start=2
> 
> This way, you don't get the 'Smalltalk at: #Class'-lookups, but if
> someone decides to lookup a class this way, then he surely has dealt
> with the fact it could raise an error (or give back nil when used as
> 'Smalltalk at: #Class ifAbsent: []'.
> 
> Did I answer your questions?
> 
> Kind regards, Markus
Very instructive, Markus






More information about the Squeak-dev mailing list