On Tue, Jan 03, 2006 at 11:29:44AM +0100, [EMAIL PROTECTED] wrote:
> > Hello.
> >
> > Given the issues surrounding Python and it being mandatory or not, I'd
> > like to suggest the following:
> > * AI can be a dynamic library / DLL file, loaded at use time
> > * WML for a map specifies the AI to use, builtin or a specific plugin,
> > and if plugin whether it's a mandatory plugin or AI can be changed for
> > builtin
> >
> 
> technically doable, both windows and unix know how to dinamically load
> some code, but I'm not sure it's doable.

I think it is a very good idea to enable this when it is possible...

Well altrough it is not always available, now most platforms support it.
However there are differences between platforms :
- Windows uses LoadLibrary()
- some *NIX and MacOS 10.4+ use dlopen(). Most of them follow the Solaris way, 
but there may be major difference in implementation for some OS.
- some other OS uses other functions (HP-UX uses shl_load())

There is two existing ways i found to provide some compatibility :
- use the glib interface for dynamic loading of modules
- libltdl, which is part of GNU libtool

Noyga

Reply via email to