[MUD-Dev] Re: atomic functions

Jon A. Lambert jlsysinc at ix.netcom.com
Wed May 13 17:42:00 CEST 1998


On  7 May 98, Shawn Halpenny wrote:
> On Wed, May 06, 1998 at 09:34:27PM +0200, Felix A. Croes wrote:
> > 
> > I contest this :)  I claim that it is very useful indeed, and not
> > at all illusionary.  I frequently find that actions which have to
> > be atomic -- for instance, moving a hungry dragon into a room,
> > which changes both the environment of the dragon and the inventory
> > of the room -- are part of a larger event, the actions of which
> > I want to be executed precisely in that other without other
> > events intervening.
> 
> Moving the hungry dragon into the room does not have to be an atomic
> action.  Removing the dragon from its current room is one event, putting it
> into the next room is another.  This is an attempt to minimize the number
> of C&C collisions if you have a lot of these things going on (get rid of the
> container-room ideology and this is even less a factor--something I'll
> probably end up going with).  The movement events will be executed in the
> correct order, since the dragon removal event posts the dragon insertion
> event only if it successfully C&C's.
> 

But what if object Bubba "closes the door"event succeeds  after the 
"dragon removed from the room" event succeeds  and before "dragon 
added to Bubba's room" begins.  Does the dragon go through the closed 
door? 

--
--/*\ Jon A. Lambert - TychoMUD     Internet:jlsysinc at ix.netcom.com /*\--
--/*\ Mud Server Developer's Page <http://www.netcom.com/~jlsysinc> /*\--
--/*\   "Everything that deceives may be said to enchant" - Plato   /*\--

--
MUD-Dev: Advancing an unrealised future.



More information about the mud-dev-archive mailing list