FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

mango.containers.Queue?

 
Post new topic   Reply to topic     Forum Index -> Mango
View previous topic :: View next topic  
Author Message
csauls



Joined: 27 Mar 2004
Posts: 278

PostPosted: Thu Aug 24, 2006 2:17 pm    Post subject: mango.containers.Queue? Reply with quote

I find myself wanting to use a Queue in the Bovis project (which makes use of Mango for various things), and it appears one could be very simply made out of LinkedList in the same way Stack was, with a couple of aliases.
_________________
Chris Nicholson-Sauls
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Thu Aug 24, 2006 3:53 pm    Post subject: Reply with quote

Cool; what is Bovis?
Back to top
View user's profile Send private message
csauls



Joined: 27 Mar 2004
Posts: 278

PostPosted: Fri Aug 25, 2006 1:13 am    Post subject: Reply with quote

An old MUVE server project of a friend and me, which is enjoying a good solid revival now that D has started to become truly applicable. (Sinbad wasn't the only thing to get stalled... I registered Bovis at SourceForge in December, 2003.)

http://sourceforge.net/projects/neomoo
http://svn.sourceforge.net/viewvc/neomoo/
_________________
Chris Nicholson-Sauls
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
teqdruid



Joined: 11 May 2004
Posts: 390
Location: UMD

PostPosted: Fri Aug 25, 2006 8:43 am    Post subject: Re: mango.containers.Queue? Reply with quote

csauls wrote:
I find myself wanting to use a Queue in the Bovis project (which makes use of Mango for various things), and it appears one could be very simply made out of LinkedList in the same way Stack was, with a couple of aliases.


I've just been adding data structures as I need them, but I guess now is as good a time as any for Queue. Its in SVN now.

In addition to enqueue() and dequeue(), I aliased them to put() and grab() respectively, since I find I can never type either enqueue or dequeue correctly the first time!
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Mango All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group