[squeak-dev] Looking for scope in superclass environment
Nicolas Cellier
nicolas.cellier.aka.nice at gmail.com
Tue Jul 30 20:15:25 UTC 2013
Currently, bindingOf:environment: will search for scope in superclass
environment.
This is an easy way to import all Smalltalk globals, since you'll end up
looking in Object/ProtoObject environment.
But is it the way it should be?
Couldn't we inherit from a class without importing all the environment in
which it was declared?
Couldn't we instead explicitily ask to import: #SomeClass or all of
Smalltalk globals?
(Beware, someone must ask Smalltalk to export: #SomeClass, or exportSelf
for such import to be possible)
Nicolas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130730/bc81891a/attachment.htm
More information about the Squeak-dev
mailing list
|