{MUD} Re: various (MUD)
Alex Oren
alexo at sapiens.com
Sun Aug 25 09:20:05 CEST 1996
On Thu, 22 Aug 1996 15:39:31 -0700, ChrisL wrote:
} On Aug 22, 11:52am, Alex Oren wrote:
}
} > Consider the following event:
} >
} > {
} > create new object $bubba
} > $bubba.HairColor = "brown"
} > at 11/12/2069 do $bubba.HairColor = "white"
} > }
} >
} > How will this be processed?
}
} Diagrammed:
}
} Event #1 starts processing.
} Event #1 creates $Bubba.
} Event #1 calls $Bubba.haircolour("brown")
} Event #1 sets up Event #2 in its C&C success list.
} Event #1 (eventually) C&C's successfully.
} $Bubba is committed with brown hair.
}
} Event #2 ripens and starts processing.
} Event #1 calls $Bubba.haircolour("white")
} Event #2 (eventually) C&C's successfully.
} $Bubba is committed with white hair.
}
} The basic idea is that an event can define a number of other events which are
} to be logged if the current event suceeds or fails.
Does it done automatically or does the coder have to explicitly write something
like:
if Event_Successful then ...
So, the stuff that has to be buffered until the successful C&C is:
- I/O (outbound)
- Starting of new events
Did I miss any?
(I think that no special treatment is needed for creating/destroying objects,
since they may be created in the cache and written tto tthe DB along with the
other C&C changes).
Have fun,
Alex.
More information about the mud-dev-archive
mailing list