[Newbies] Collection subclasses
Rob Rothwell
r.j.rothwell at gmail.com
Thu Apr 3 02:31:46 UTC 2008
If I create a simple object subclassed from Collection,
SequenceableCollection, or ArrayedCollection called CollectionObject, with
CollectionObject>>#initialize
self halt.
and execute:
CollectionObject new.
the halt is executed.
Whereas, if I subclass CollectionObject from:
Set
Dictionary
OrderedCollection
Array
It does not.
Is one not supposed to make subclasses of these classes, and if so, why not?
I have an object that is most naturally a Dictionary-like object with
various subclasses, but I can not initialize it...
Thank you; I feel I am missing something very basic in my understanding!
Rob Rothwell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20080402/d23b0f98/attachment.htm
More information about the Beginners
mailing list