[Newbies] Re: Collection subclasses
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>
> 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
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...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners