> > > Has anyone tried to do modular programming with rom?  So that instead
of
> > > making a change the program, and having to "recompile" every time u
make
> > > a change and have to "restart" the whole entire mud to make changes,
> > > just do a reload of the module?
> > >
> > > I was thinkin about it tonight. And was thinkin about making a modular
> > > based snippet to allow for this.
> > >
> > > What I would like would be some ideas/oppinions/suggestions on what
you
> > > all think about this and what you'd like to see in such a project. Any
> > > help would appreciated. Even critisizm would be helpful.  :)
> > >
> > >
> > > Thanks for your time,
> > > Rheede
> > >
> >
> >     Myself, well... yes and no...
> >     About a year ago, I tried making a modular DLL "plugin" system with
> > cygwin and a heavily, heavily modified rom.  I had tried using DLLs for
the
> > modules but ran into problems debugging the function calls into the DLL.
> > (Maybe I should have tried with VC++ instead of cygwin?)
> >     The plugin system used a text file (CSV actually) to list commands,
> > their attributes, the DLL name, and the function names inside the DLL
> > associated with the command and basically everything that once was
inside
> > the Command Table - function calls were bound dynamically and were (of
> > course) all of type DO_FUN, etc.  It worked nicely, except for the
standard
> > Windows problem of not being able to overwrite a file in use - in this
case
> > the DLLs.  This kinda defeated the idea of a hot-pluggable command
system
> > tho. :-/  If I could have figured out a way to force unload the DLL
between
> > function calls, then this wouldn't have been a problem!  Maybe I just
wasn't
> > doing something right...
>
> Ah the foibles of using windows. *nix doesn't have this problem, I'd
suggest
> you try it with a different OS.
>
> ~Kender
>

    How true :-)
    My exercise had been using cygwin (and thus the dl* functions) and would
have ported to *nix likely, had I had a *nix box handy... :-/
    I don't know if I'd recommend Cygwin to everyone, since it (at least for
me) makes one think that they're operating in *nix, but with all the
fallacies of Windows hidden just out of sight.  (As I experienced with file
execution and permission here.)

Tony


Reply via email to