[Newbies] Re: Collection subclasses
Rob Rothwell
r.j.rothwell at gmail.com
Thu Apr 3 21:47:01 UTC 2008
On Thu, Apr 3, 2008 at 3:47 PM, nicolas cellier <ncellier at ifrance.com>
wrote:
> If you examine the protocol of these classes, you will see that they use
> an #initialize: with an argument instead.
> No extra initialization at all performed by default (it's a deliberate
> optimization).
Ok...I kind of got the #initialize: n, but I guess I somehow thought that
#initialize would be called as well (which doesn't make sense, I know)
> You can of course create your own subclass (only SmallInteger is really
> hardly subclassable if I remember).
>
> Whether or not you should do it is another question...
This is INDEED the question!
Thank you all. I learned a lot from this little exercise...
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20080403/53ee4c65/attachment.htm
More information about the Beginners
mailing list