[Newbies] Collection subclasses

Michael Davies mykdavies+squeak at gmail.com
Thu Apr 3 13:56:23 UTC 2008


On Thu, Apr 3, 2008 at 3:52 AM, Rob Rothwell <r.j.rothwell at gmail.com> wrote:
>  So the behavior I am seeing is to be expected, then?  And how would I have
> known to expect this?  I guess my assumption was that any object could
> "extend" any other object!
>

Hi Rob,

I wonder if you were thinking that #initialize was automatically
called on instantiation (like a constructor method in Java)? If that's
the case, this link may help:
http://onsmalltalk.com/programming/smalltalk/objects-classes-and-constructors-smalltalk-style/

Cheers,
Michael


More information about the Beginners mailing list