[MLton] cvs commit: Loading dynamic libraries works on Darwin

Matthew Fluet fluet@cs.cornell.edu
Tue, 28 Sep 2004 15:53:59 -0400 (EDT)


>   I wonder if we should make the iimport.sml DynLink stuff available in
>   the MLton structure.

It doesn't require any compiler support (other than ensuring that the
appropriate dynamic linking library is linked in -- which reminds me, why
is -ldl in the link-opt for so many platforms?), so I argue against it.
Also, note that it is a quick and dirty implementation.  For example, it
doesn't play well with MLton.World.{load,save}, because the addresses
returned by dlsym aren't valid across different executions.