<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: {MUD} Re: various (MUD) -->
<!--X-From-R13: "Quevf Znjerapr" <pynjerapNkfie1.phc.uc.pbz> -->
<!--X-Date: from 194.78.48.181 [194.78.48.181] by mx01.ca.us.ibm.net id 841080520.56951&#45;1 Mon Aug 26 17:28:40 1996 -->
<!--X-Message-Id: 9608261011.ZM5972#xsvr1,cup.hp.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: Pine.SOL.3.94.960819230913.2495E&#45;100000#eduserv1,rug.ac.be -->
<!--X-Reference: 9608201042.ZM17986#xsvr1,cup.hp.com -->
<!--X-Reference: 321ab54f.1279920638#squid,sapiens.com -->
<!--X-Reference: 9608210939.ZM4187#xsvr1,cup.hp.com -->
<!--X-Reference: 321c48ca.1383211132#squid,sapiens.com -->
<!--X-Reference: 9608221539.ZM2906#xsvr1,cup.hp.com -->
<!--X-Reference: 32200d5a.6711009#squid,sapiens.com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: {MUD} Re: various (MUD)</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:clawrenc#xsvr1,cup.hp.com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00022.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00024.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00013.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00026.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00023">Author</A>
&nbsp;|&nbsp;<A HREF="#00023">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00023">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: {MUD} Re: various (MUD)</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud#megami,ibase.be">mud#megami,ibase.be</A></LI>
<LI><em>Subject</em>: Re: {MUD} Re: various (MUD)</LI>
<LI><em>From</em>: "Chris Lawrence" &lt;<A HREF="mailto:clawrenc#xsvr1,cup.hp.com">clawrenc#xsvr1,cup.hp.com</A>&gt;</LI>
<LI><em>Date</em>: Mon, 26 Aug 1996 10:11:57 -0700</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud#megami,ibase.be">mud#megami,ibase.be</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:owner-mud#megami,ibase.be">owner-mud#megami,ibase.be</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Aug 25,  9:20am, Alex Oren wrote:
&gt; On Thu, 22 Aug 1996 15:39:31 -0700, ChrisL wrote:

&gt; } Diagrammed:
&gt; }
&gt; }   Event #1 starts processing.
&gt; }     Event #1 creates $Bubba.
&gt; }     Event #1 calls $Bubba.haircolour("brown")
&gt; }     Event #1 sets up Event #2 in its C&amp;C success list.
&gt; }   Event #1 (eventually) C&amp;C's successfully.
&gt; }     $Bubba is committed with brown hair.
&gt; }
&gt; }   Event #2 ripens and starts processing.
&gt; }     Event #1 calls $Bubba.haircolour("white")
&gt; }   Event #2 (eventually) C&amp;C's successfully.
&gt; }     $Bubba is committed with white hair.
&gt; }
&gt; } The basic idea is that an event can define a number of other events
&gt; } whihc are to be logged if the current event suceeds or fails.
&gt;
&gt; Does it done automatically or does the coder have to explicitly write
&gt; something like:
&gt;
&gt; 	if Event_Successful then ...

Largely semantic details, but my current implementation is of the form:

  at_exit (E_SUCCESS, object.method, args...)

  at_exit (E_FAILURE, object.method, args...)

Where multiple events can be queued for each state.

&gt; So, the stuff that has to be buffered until the successful C&amp;C is:
&gt;   - I/O (outbound)
&gt;   - Starting of new events

Anything done to an object (create, change, destroy)
Any IO (I send IO as seperate events chained off E_SUCCESS as above)
Dependant events (ie the at_exit stuff above)

&gt; Did I miss any?

That seems pretty compleat.

&gt; (I think that no special treatment is needed for creating/destroying objects,
&gt; since they may be created in the cache and written tto tthe DB along with the
&gt; other C&amp;C changes).

That is my assumption, tho the DB needs to be explicitly tailored to handle
this, and to temporarily assign and reserve valid ObjectIDs.  Object creates
and destroys are really of a different class of DB-level events than object
content changes.



-- 
J C Lawrence                           Internet: coder#ibm,net
---------------(*)               Internet: clawrenc#cup,hp.com
...Honorary Member Clan McFUD -- Teamer's Avenging Monolith...

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00026" HREF="msg00026.html">Re: {MUD} Re: various (MUD)</A></strong>
<ul compact><li><em>From:</em> alexo#sapiens,com (Alex Oren)</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00013" HREF="msg00013.html">{MUD} Re: various (MUD)</A></STRONG>
<UL><LI><EM>From:</EM> alexo#sapiens,com (Alex Oren)</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00022.html">Re: {MUD} Re: Wout's mailing list.</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00024.html">Re: {MUD} Re: roleplaying &amp; combat</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00013.html">{MUD} Re: various (MUD)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00026.html">Re: {MUD} Re: various (MUD)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00023"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00023"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><strong><A NAME="00027" HREF="msg00027.html">{MUD} Mobile behaviour</A></strong>, 
Chris Lawrence <a href="mailto:clawrenc#xsvr1,cup.hp.com">clawrenc#xsvr1,cup.hp.com</a>, Tue 27 Aug 1996, 02:40 GMT
<LI><strong><A NAME="00013" HREF="msg00013.html">{MUD} Re: various (MUD)</A></strong>, 
Alex Oren <a href="mailto:alexo#sapiens,com">alexo#sapiens,com</a>, Sun 25 Aug 1996, 17:00 GMT
<UL>
<LI><strong><A NAME="00023" HREF="msg00023.html">Re: {MUD} Re: various (MUD)</A></strong>, 
Chris Lawrence <a href="mailto:clawrenc#xsvr1,cup.hp.com">clawrenc#xsvr1,cup.hp.com</a>, Tue 27 Aug 1996, 00:28 GMT
<UL>
<LI><strong><A NAME="00026" HREF="msg00026.html">Re: {MUD} Re: various (MUD)</A></strong>, 
Alex Oren <a href="mailto:alexo#sapiens,com">alexo#sapiens,com</a>, Tue 27 Aug 1996, 02:24 GMT
<UL>
<LI><strong><A NAME="00028" HREF="msg00028.html">Re: {MUD} Re: various (MUD)</A></strong>, 
Chris Lawrence <a href="mailto:clawrenc#xsvr1,cup.hp.com">clawrenc#xsvr1,cup.hp.com</a>, Tue 27 Aug 1996, 04:24 GMT
<UL>
<LI><strong><A NAME="00031" HREF="msg00031.html">Re: {MUD} Re: various (MUD)</A></strong>, 
Alex Oren <a href="mailto:alexo#sapiens,com">alexo#sapiens,com</a>, Tue 27 Aug 1996, 15:30 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00011" HREF="msg00011.html">{MUD} Re: MUD: languages (type checking, sigh)</A></strong>, 
Alex Oren <a href="mailto:alexo#sapiens,com">alexo#sapiens,com</a>, Sun 25 Aug 1996, 16:44 GMT
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>