[Cuis-dev] indexable objects

Boris Shingarov shingarov at labware.com
Tue Sep 3 14:10:57 PDT 2024


> What does a class need to do to indicate that it is indexable? I searched
> the Array class and all its superclasses, but the answer wasn't apparent to
> me.

It's above Array class.  Behavior has instance variable 'format'.
Look at Behavior>>instSpec and its senders.

On Tue, Sep 03, 2024 at 10:00:07AM -0500, Mark Volkmann via Cuis-dev wrote:
> The at:put: method in the object class contains the comment "Assumes
> receiver is indexable.".
> What does a class need to do to indicate that it is indexable? I searched
> the Array class and all its superclasses, but the answer wasn't apparent to
> me.
> 
> I'm reading the blue book now. On page 48 it says "its variable declaration
> will include the line index instance variables". I'm assuming that's the
> way it worked in Smalltalk-80, but it works differently in Cuis Smalltalk.
> 
> -- 
> R. Mark Volkmann
> Object Computing, Inc.

> -- 
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev



More information about the Cuis-dev mailing list