Name spaces in Spoon
nicolas cellier
ncellier at ifrance.com
Sat May 27 21:01:14 UTC 2006
Le Samedi 27 Mai 2006 04:43, Ralph Johnson a écrit :
> I've been programming in Smalltalk off and on for twenty years. I've
> taught a class that used it at least once a year. Method collision
> that could be solved by private selectors is pretty rare. Class
> collision is more common, but still isn't that common.
However, name clashes are probable when loading two packages dealing with same
subject.
For example
Number>>,
to form an array of numbers or a matrix, or:
SequenceableCollection>>asMatrix
If i load two Matrix packages in my image, they will likely override these
selectors.
Why to load two Matrix packages ? Maybe it's not my choice, but the dependency
chain of end user apps i was interested in...
Same for two File/URL packages, two HTML rendering packages etc...
Nicolas
More information about the Squeak-dev
mailing list
|