8 Dec
2000
8 Dec
'00
6:54 p.m.
By contrast DLL under MacOS X seems to be automatic -- one simply requests the functions in the source code just as any statically linked function, and the OS loads them "lazily" at need when required. So, by contrast, anything that can be done with DLL seems to be recommended under MacOS X.
This isn't quite what Hugs needs. Hugs needs functionality equivalent to dl_open on unix.
From memory and with some simplification:
handle dl_open(char*) loads a shared library file dl_lookup(handle,char*) looks up a name in a loaded shared library dl_close(handle) closes a shared library Loading has to be explicit because it is done in response to the Hugs user loading a Haskell file that requires a shared library. -- Alastair