--- Bobby Hicks <[EMAIL PROTECTED]> wrote:
> Actually, I was thinkin more along the lines of having the mud sort of
> "compile" the code on the fly. Maybe make the module kind of like
> mobprogs are done. But, would be more readable and easier to use. Well,
> sort of. More like C code but in a separate file and the mud would read
> it, compile it, and load the module.
> Since I'm coding my mud up in linux, I don't think the dll option would
> be my best bet. Esp since I don't know how to create dll's for linux.
> ;p
> 
> Thanks for the input though, Tony. Much appreciated.

Dynamically linking libraries are very easy with linux. See man pages for 
dlopen, dlsym, and dlclose. That should get you started. There's even some 
examples to copy from. Once you put the highly mutable portions of your game
into a separate library it becomes relatively easy to swap out functionality
at runtime.

~Kender

=====
-----BEGIN GEEK CODE BLOCK-----
Version 3.1
GCS/L/C/O d-(+) s++: a-- C+++$>++++ UBLS++++$ 
P+++(--)$ L+++>++++ E--- W+>++$ N !o K? w(--) !O 
M- !V PS+ PE(++) Y+ PGP->+ t+ 5 X+() R(+) tv+@ 
b++(+++) !DI+++ D G(-) e>+++$ h---() r+++ y+++
------END GEEK CODE BLOCK------

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Reply via email to