Re: [Newbies] Collection subclasses

2008-04-07 Thread Rob Rothwell
On Mon, Apr 7, 2008 at 1:26 PM, stephane ducasse <[EMAIL PROTECTED]> wrote: > 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 i

Re: [Newbies] Collection subclasses

2008-04-07 Thread stephane ducasse
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). Stef On Apr 3, 2008, at 4:31 AM, Rob Rothwell wrote: If I cre

Re: [Newbies] Collection subclasses

2008-04-03 Thread Michael Davies
On Thu, Apr 3, 2008 at 3:52 AM, Rob Rothwell <[EMAIL PROTECTED]> 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

Re: [Newbies] Collection subclasses

2008-04-02 Thread Bert Freudenberg
On 03.04.2008, at 04:52, Rob Rothwell wrote: On Wed, Apr 2, 2008 at 10:48 PM, Randal L. Schwartz <[EMAIL PROTECTED] > wrote: > "Rob" == Rob Rothwell <[EMAIL PROTECTED]> writes: Rob> Is one not supposed to make subclasses of these classes, and if so, why not? Generally, your object "has

Re: [Newbies] Collection subclasses

2008-04-02 Thread Rob Rothwell
On Wed, Apr 2, 2008 at 10:48 PM, Randal L. Schwartz <[EMAIL PROTECTED]> wrote: > > "Rob" == Rob Rothwell <[EMAIL PROTECTED]> writes: > > Rob> Is one not supposed to make subclasses of these classes, and if so, > why not? > > Generally, your object "has a" collection, but doesn't qualify to be

Re: [Newbies] Collection subclasses

2008-04-02 Thread Randal L. Schwartz
> "Rob" == Rob Rothwell <[EMAIL PROTECTED]> writes: Rob> Is one not supposed to make subclasses of these classes, and if so, why not? Generally, your object "has a" collection, but doesn't qualify to be "is a" collection. If you really want to subclass collection classes, you need to peer d

[Newbies] Collection subclasses

2008-04-02 Thread Rob Rothwell
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 Dictionar