[squeak-dev] Looking for scope in superclass environment
nicolas.cellier.aka.nice at gmail.com
Tue Jul 30 20:15:25 UTC 2013
Currently, bindingOf:environment: will search for scope in superclass
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
(Beware, someone must ask Smalltalk to export: #SomeClass, or exportSelf
for such import to be possible)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev