Currently, Phobos is available as a ready-made LIB file, which at compile time is statically linked to your executable.
This has some advantages for a DLL:
- Deployment - you can always be sure that your executable has the appropriate runtime / gc / phobos - the one that was tested with your application. There is a new version of Fobos and D runtime every month, using a DLL in this case can lead to version problems.
disadvantages
- The executable size is slightly larger (100 kb)
- Each "unit" exe / dll has its own garbage collector.
Why are you exploring options for using DLLs for Phobos? What disadvantages have you seen when using LIB?
Michal minich
source share