no queue class in base?

Josh Gargus schwa at fastmail.us
Thu Nov 3 20:24:20 UTC 2005


What about OrderedCollection?  It has the methods #removeFirst  
and#addLast:, which should be all you need for a queue.

Or, if you prefer, #addFirst: and #removeLast  :-)

Josh


On Nov 3, 2005, at 12:12 PM, Martin Kuball wrote:

> Hi!
>
> I'm looking for a queue class in squeak. The only class I found is
> SharedQueue. But I don't need synchronization. Sure, if there is
> really none I could write one in minutes. But I wonder if it makes
> sense to add such an elementary data structure to the base collection
> stuff.
>
> Martin
>




More information about the Squeak-dev mailing list