[Home] [Groups] - Message: [Prev in Group] [Next in Group]
14042: RE: [MUD-Dev] FW: A question of message propagation
[Full Header] [Plain Text]
From: "Jon A. Lambert" <jlsysinc@ix.netcom.com>
Newsgroups: nu.kanga.list.mud-dev
Date: Thu, 15 Jun 2000 18:01:03 -0400
References: [1]
Organization: Kanga.Nu
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@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@kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev