[squeak-dev] Re: [Patch] Class>>#bindingOf: with inheritance priority over Smalltalk global variables

Michael van der Gulik mikevdg at gmail.com
Fri Feb 29 04:26:20 UTC 2008


On 2/28/08, Klaus D. Witzel <klaus.witzel at cobss.com> wrote:
>
> On Thu, 28 Feb 2008 09:12:10 +0100, Michael van der Gulik wrote:
>
>
> > On 2/27/08, Klaus D. Witzel wrote:
> >>
> >> I want to give priority of a class' hierarchy's bindings over that of
> >> (self environment) when the latter defaults to the Smalltalk global
> >> dictionary (as is the case today in most images).
> >>
> >> Attached is a patch which supports SharedPool as it was introduced in
> >> -
> >>
> http://lists.squeakfoundation.org/pipermail/squeak-dev/2003-May/058391.html
> >>
> >
> > The patch looks good to me. I especially like how you refer to Smalltalk
> > as "nil environment".
>
> :)
>
> > I modified this code to get Namespaces resolving right.
>
>
> Did you mean this like, you adapted it to your Namespaces. If not, can you
> elaborate a bit, TIA.
>


Actually, on closer inspection, I didn't modify the method except to remove
shared pools, which can be implemented using Namespaces anyway.

In my Namespaces, "aClass environment" returns the local namespace.

Gulik.


-- 
http://people.squeakfoundation.org/person/mikevdg
http://gulik.pbwiki.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20080229/8bd1d46e/attachment.htm


More information about the Squeak-dev mailing list