swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

subclassing a list


From: Timothy Jares
Subject: subclassing a list
Date: Thu, 09 Oct 1997 09:24:03 -0400

I'm trying to add a simple  method to the list class to insert my objects
in ascending order.  I'm sure this should be a simple task but strange
things are happening and I'm not sure what to do.  Ideally, I would
only like to add a single method which utilizes an index to place the
entry at the proper place in the list.  If I understand everything
correctly, the documentation suggests that I create a new class,
e.g., SortList, that adds the method and simply passes through
other messages to the List class.  

Does anyone have any examples of this?  I have tried to do this by
adding my method and and "shell" methods for begin, getCount,
etc. that simply forward on messages to my list instance.  

If a code fragment of what I've done would be helpful, I'll include
it later.

Thanks in advance for any help you can give.

Tim Jares
address@hidden
University of North Florida

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]