1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: DevMUD:  Inheritable modules -->
<!--X-From-R13: Quevf Uenl <ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO> -->
<!--X-Date: Fri, 30 Oct 1998 19:37:16 &#45;0800 -->
<!--X-Message-Id: 199810310335.UAA05407@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: DevMUD:  Inheritable modules</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">
</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="msg00613.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00615.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00613.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00633.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00614">Author</A>
&nbsp;|&nbsp;<A HREF="#00614">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00614">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: DevMUD:  Inheritable modules</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></LI>
<LI><em>Subject</em>: [MUD-Dev] Re: DevMUD:  Inheritable modules</LI>
<LI><em>From</em>: Chris Gray &lt;<A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A>&gt;</LI>
<LI><em>Date</em>: Fri, 30 Oct 1998 20:35:02 -0700</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>
[Joachim Pileborg/The Arrow:]

[...description of mudule interfaces...]

First, let me say that I like what I've seen here. The general approach
looks good to me, although I don't follow the intent of some of the
details. I would suggest, however, that we use the phrase 'a module
implements an interface' rather than 'a module inherits an interface'.
This is consistent with the Java terminology for the same thing, and
avoids suggesting that anything in the way of data structure is
inherited.

 &gt;The function array is a NULL terminated array of pointers to
 &gt;interface_function structures.  The interface_function struture contains
 &gt;the following fields:
 &gt;  o Funciton name
 &gt;  o Pointer to the function
 &gt;The function name is a predefined constant that is interface specific.
 &gt;For example:  The Net basic module could have the following function
 &gt;names:  MOD_NET_CONNECTTO, MOD_NET_WRITETO, and MOD_NET_READFROM.

I'd like to add parameter and result type information. Even if this
stuff is statically predetermined, having it available at run-time is
useful if there is a MUD-internal language that can display it. Or
allow an on-line programmer to call a module exporting it!

 &gt;MUDs must have at least the following interfaces to be DevMUD compliant:
 &gt;  o Module
 &gt;      The Module interface contains functions to get info about the
 &gt;      module and configuring the module.
 &gt;  o Net
 &gt;     The Net module is an abstract interface, containing just dummy net
 &gt;     functions.  Modules inheriting this interface must provide real
 &gt;     implementations for these functions.

Are you really speaking of what a MUD must implement in order to be
compliant with DevMUD? Or are you speaking of what modules must
implement in order to be usable with a DevMUD core? In the latter case,
why must all modules implement the Net interface?

 &gt;The following interfaces are considered standard, and should either come
 &gt;with the DevMUD package, or be easily found and added:

Lots of room for discussion here. I'm sure there will be!

 &gt;If a module inherits an interface not in the interface database, the
 &gt;module is unloaded and an error message should be logged on the console
 &gt;and sent as a message to all loaded modules.

Why? If a module is loaded, and it implements an interface that no-one else
has heard of, so what? Perhaps the very next module to be loaded needs
that interface, and the two are being loaded as a pair. Just add the
interface to the table of interfaces, and have it ready for use. I also
think that the only interfaces that the core need already know about are
those which it exports, or which it generically requires of all modules
(e.g. your Module interface).

After thinking through this, and some earlier discussions, too, my
previous idea of having a header file containing prototypes for the
interfaces isn't needed at all. As Joachim says, each interface is
self describing, and the core simply matches up modules that export
such an interface with those that require it.

Just how the core matches up requirers with providers still needs some
discussion. This is a good start!

--
Don't design inefficiency in - it'll happen in the implementation. - me

Chris Gray     cg#ami-cg,GraySage.Edmonton.AB.CA


</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="00852" HREF="msg00852.html">[MUD-Dev] Re: DevMUD:  Inheritable modules</A></strong>
<ul compact><li><em>From:</em> James Wilson &lt;jwilson#rochester,rr.com&gt;</li></ul>
<li><strong><A NAME="00633" HREF="msg00633.html">[MUD-Dev] Re: DevMUD:  Inheritable modules</A></strong>
<ul compact><li><em>From:</em> The Arrow &lt;arrow#trelleborg,mail.telia.com&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00613.html">[MUD-Dev] Re: DevMUD:  Inheritable modules</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00615.html">[MUD-Dev] Re: DevMUD:  Inheritable modules</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00613.html">[MUD-Dev] Re: DevMUD:  Inheritable modules</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00633.html">[MUD-Dev] Re: DevMUD:  Inheritable modules</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00614"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00614"><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="00577" HREF="msg00577.html">[MUD-Dev] [DevMUD] driver implementation language</A></strong>, 
Hal Black <a href="mailto:hal#moos,ml.org">hal#moos,ml.org</a>, Thu 29 Oct 1998, 05:03 GMT
<LI><strong><A NAME="00571" HREF="msg00571.html">[MUD-Dev] Re: DevMUD:  Inheritable modules</A></strong>, 
Bruce Mitchener, Jr. <a href="mailto:bruce#puremagic,com">bruce#puremagic,com</a>, Wed 28 Oct 1998, 19:59 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00576" HREF="msg00576.html">[MUD-Dev] Re: DevMUD:  Inheritable modules</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Thu 29 Oct 1998, 02:45 GMT
</LI>
<LI><strong><A NAME="00613" HREF="msg00613.html">[MUD-Dev] Re: DevMUD:  Inheritable modules</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 31 Oct 1998, 03:16 GMT
</LI>
<LI><strong><A NAME="00614" HREF="msg00614.html">[MUD-Dev] Re: DevMUD:  Inheritable modules</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 31 Oct 1998, 03:37 GMT
<UL>
<LI><strong><A NAME="00633" HREF="msg00633.html">[MUD-Dev] Re: DevMUD:  Inheritable modules</A></strong>, 
The Arrow <a href="mailto:arrow#trelleborg,mail.telia.com">arrow#trelleborg,mail.telia.com</a>, Sat 31 Oct 1998, 21:01 GMT
</LI>
<LI><strong><A NAME="00852" HREF="msg00852.html">[MUD-Dev] Re: DevMUD:  Inheritable modules</A></strong>, 
James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Sun 22 Nov 1998, 23:04 GMT
<UL>
<LI><strong><A NAME="00853" HREF="msg00853.html">[MUD-Dev] Re: DevMUD: Inheritable modules</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Sun 22 Nov 1998, 23:08 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00621" HREF="msg00621.html">[MUD-Dev] Re: DevMUD:  Inheritable modules</A></strong>, 
Cynbe ru Taren <a href="mailto:cynbe#muq,org">cynbe#muq,org</a>, Sat 31 Oct 1998, 07:50 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>