[squeak-dev] Global variable lookup

Eliot Miranda eliot.miranda at gmail.com
Fri Jan 11 18:41:32 UTC 2013


On Fri, Jan 11, 2013 at 10:28 AM, Bert Freudenberg <bert at freudenbergs.de>wrote:

> (reposting as separate thread)
>
> I do wonder why Class>>bindingOf:environment: looks into the environment
> first, however. This means that a global variable would shadow an inherited
> class variable or pool variable, which is against my intuition of how
> scoping works. Does anyone know why this would be intended?
>

FYI, the VisualWorks namespace system does bind inherited class vars before
imports/globals.
-- 
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130111/5dc3ceba/attachment.htm


More information about the Squeak-dev mailing list