1999Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: MUD Design doc (long) -->
<!--X-From-R13: Szvy Svserz <rzvyNcebcurpl.yh> -->
<!--X-Date: Sun, 3 Jan 1999 17:45:13 &#45;0800 -->
<!--X-Message-Id: Version.32.19990104022314.00f43250#sendar,prophecy.lu -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199901031713.KAA00873@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: MUD Design doc (long)</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:emil#prophecy,lu">
</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="msg00028.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00030.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00025.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00092.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00029">Author</A>
&nbsp;|&nbsp;<A HREF="#00029">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00029">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: MUD Design doc (long)</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A>, <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] Re: MUD Design doc (long)</LI>
<LI><em>From</em>: Emil Eifrem &lt;<A HREF="mailto:emil#prophecy,lu">emil#prophecy,lu</A>&gt;</LI>
<LI><em>Date</em>: Mon, 04 Jan 1999 02:42:04 +0100</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
At 06:13 PM 1/3/99 , Chris Gray wrote:
&gt;[Emil Eifrem:]
&gt; &gt;The most reasonable thing is probably to have some kind of 'default
&gt; &gt;function' (be it via inheritance or some other construction) that handles
&gt; &gt;everything but the 'unusual case,' where the builder overloads this
&gt; &gt;'default function' with his scripting code. This should probably be done
&gt; &gt;regardless of whether you implement all your commands in the scripting
&gt; &gt;language or in your static server.
&gt;
&gt;If your system allows dynamic procs and the controlled calling of them,
&gt;there are further twists that you can do to make things easier and more
&gt;consistent. Have your 'default function' always run, and perform all
&gt;of the checks that need to be done before anything specific to the
&gt;object in question needs to be tested. At that point, check for the
&gt;existence of a special processing function for this verb on that object,
&gt;and call it if found. Otherwise do the normal default processing. In
&gt;either case, you may or may not want to do common 'after-special-case'
&gt;processing, depending on the result of that special case. In fact, all
&gt;the real work may be done there, and 'normal default processing' consists
&gt;of nothing at all.

Yes, I've had thoughts of special always-executed 'pre-' and
'post-handlers.' The advantages are obvious: you have a uniform generic
function that is always called before any actual command processing is
done. The 'prehandler' for example, could perform a lot of sanity checks
and similar stuff which would generally remove a lot of code duplication.
Same goes for the 'posthandler.'

The problem is that I just don't think it would work in practice. I mean,
the preprocessing for 'get' and 'drop' is pretty similar (is the object
there? can it be manipulated by the character?) but what about 'dodge',
'who', 'say' and 'cast'? -shrug-

I know there are people out there who have implemented or are considering
implementing this -- how did you set it up?

-EE [emil#prophecy,lu]



</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="00092" HREF="msg00092.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>
<ul compact><li><em>From:</em> Mik Clarke &lt;mikclrk#ibm,net&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00025" HREF="msg00025.html">[MUD-Dev] Re: MUD Design doc (long)</A></STRONG>
<UL><LI><EM>From:</EM> Chris Gray &lt;cg#ami-cg,GraySage.Edmonton.AB.CA&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00028.html">[MUD-Dev] Re: Info about different skill systems</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00030.html">[MUD-Dev] Re: MUD Design doc (long)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00025.html">[MUD-Dev] Re: MUD Design doc (long)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00092.html">[MUD-Dev] Re: MUD Design doc (long)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00029"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00029"><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>[MUD-Dev] Re: MUD Design doc (long)</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00022" HREF="msg00022.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>, 
Emil Eifrem <a href="mailto:emil#prophecy,lu">emil#prophecy,lu</a>, Sat 02 Jan 1999, 21:16 GMT
<UL>
<LI><strong><A NAME="00035" HREF="msg00035.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>, 
Travis S. Casey <a href="mailto:efindel#io,com">efindel#io,com</a>, Mon 04 Jan 1999, 18:57 GMT
</LI>
<LI><strong><A NAME="00065" HREF="msg00065.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>, 
Marian Griffith <a href="mailto:gryphon#iaehv,nl">gryphon#iaehv,nl</a>, Wed 06 Jan 1999, 20:54 GMT
</LI>
</UL>
</LI>
</ul>
</ul>
</ul>
</ul>
<LI><strong><A NAME="00025" HREF="msg00025.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 03 Jan 1999, 17:12 GMT
<UL>
<LI><strong><A NAME="00029" HREF="msg00029.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>, 
Emil Eifrem <a href="mailto:emil#prophecy,lu">emil#prophecy,lu</a>, Mon 04 Jan 1999, 01:45 GMT
<UL>
<LI><strong><A NAME="00092" HREF="msg00092.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>, 
Mik Clarke <a href="mailto:mikclrk#ibm,net">mikclrk#ibm,net</a>, Fri 08 Jan 1999, 20:16 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00030" HREF="msg00030.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Mon 04 Jan 1999, 04:09 GMT
</LI>
<LI><strong><A NAME="00037" HREF="msg00037.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Mon 04 Jan 1999, 19:59 GMT
</LI>
<LI><strong><A NAME="00042" HREF="msg00042.html">[MUD-Dev] Re: MUD Design doc (long)</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Tue 05 Jan 1999, 03:15 GMT
</LI>
</ul>
</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>