[Newbies] Collection subclasses
stephane.ducasse at free.fr
Mon Apr 7 17:26:03 UTC 2008
normally initialize instance side method is automatically invoked when
you send the message new.
Now for some collections this behavior has been optimized because it
was not doing what it should do (unnnecessary initialization).
On Apr 3, 2008, at 4:31 AM, Rob Rothwell wrote:
> If I create a simple object subclassed from Collection,
> SequenceableCollection, or ArrayedCollection called
> CollectionObject, with
> self halt.
> and execute:
> CollectionObject new.
> the halt is executed.
> Whereas, if I subclass CollectionObject from:
> 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
> Rob Rothwell
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
More information about the Beginners