On Saturday, 29 November 2014 at 13:52:11 UTC, Martin Nowak wrote:
On Thursday, 27 November 2014 at 21:52:27 UTC, MrSmith wrote:
Can you suggest a good way to design mod system? Where each
mod can depend on others and use their real functionality. All
mods should be in form of dlls.
No DLL per module, just releasing a complete Phobos.DLL. If you
want to ship a smaller Phobos.dll , build one yourself.
I meant modifications, not modules here. Will it work if i have
an interface and implementation of each modification in a
separate shared library? How other modifications can depend on
that interface? Should i simply add it to import path while
compiling or i need to compile it too? This will cause a
duplication of interface.
On Friday, 28 November 2014 at 12:56:10 UTC, Kagamin wrote:
On Thursday, 27 November 2014 at 11:21:23 UTC, Martin Nowak
wrote:
No!
https://issues.dlang.org/show_bug.cgi?id=7020#c2
If you want interfaces to be unique, you'll have whole new dlls
containing only interface definitions and probably nothing
else, just for the sake of uniqueness (things like this happen
in .net). And you still have to deal with templates.
Can i compile it in the same dll with its implementation?