Creating a dynamic library on Linux with DMD
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Sun Jun 10 17:18:52 PDT 2007
Frank Benoit wrote:
> OK, so there is really no chance with DMD :/
> Frits, thanks for this, i will try it with GDC.
Now that I think about it, the D spec specifies:
---
Public means that any code within the executable can access the member.
Export means that any code outside the executable can access the member.
Export is analogous to exporting definitions from a DLL.
---
So then to correctly implement this the compilers should technically
already make "hidden" the default visibility, and use "default" only for
symbols with the "export" attribute in D. That would be pure D, without
compiler-specific attributes.
I'm not sure if this is currently implemented like that though, and I
don't feel like checking -- it's late over here.
More information about the Digitalmars-d
mailing list