On 2011-11-10 23:24, Jonathan M Davis wrote:

Yeah. Adding functionality to Phobos which is pure D is generally a good thing
(though stuff which really isn't generally useful obviously shouldn't be in
there). But adding stuff that requires additional dependencies is far more
iffy. If the module is really self-contained and you can get away with using
Phobos without linking in the library that it needs as long as you don't use
it, then it's not necessarily a big deal. But if it's going to require that
everyone using Phobos link it in and it's not standard on all systems, then it
needs a really solid reason for being in Phobos. And if we get in a situation
where we need to add extra linking commands to dmd itself (as we had to with
librt) for each such library, then that becomes undesirable very quickly IMHO.

If dlopen is used to load a dynamic library then there shouldn't be any problem. It will be automatically loaded and only when needed.

--
/Jacob Carlborg

Reply via email to