[MUD-Dev] FW: A question of message propagation

Jon A. Lambert jlsysinc at ix.netcom.com
Thu Jun 15 18:01:03 CEST 2000


Joe Kingry wrote:
> 
> You must be using a queue implementation I don't know about. The eating
> duplicate part is not something I have a problem with, it's just well, in
> queue's as I understand them queue::get is going to remove and return the
> end item off the queue.
> 

Yes.  Get is non-destructive and just moves the pointer to the
queue top.  Put is is non-repeating only because the items are left 
in the queue.  

oper      queue
q.put(A)  A
q.put(B)  AB
q.put(A)  AB
q.put(C)  ABC
q.get()   ABC
          ^
q.get()   ABC 
           ^
q.get()   ABC 
            ^
q.put(A)  ABC
            ^ 

--
--* Jon A. Lambert - TychoMUD        Email:jlsysinc at ix.netcom.com *--
--* Mud Server Developer's Page <http://tychomud.home.netcom.com> *--
--* If I had known it was harmless, I would have killed it myself.*--
 




_______________________________________________
MUD-Dev mailing list
MUD-Dev at kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev



More information about the mud-dev-archive mailing list