[Issue 9816] Export is mostly broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 28 09:31:33 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9816



--- Comment #4 from Martin Nowak <code at dawg.eu> 2013-05-28 09:31:31 PDT ---
> 1) Exporting a global variable leads to a linker error
fixed by bug 10059

> 2) Exporting thread local variables should be an error (at least it is in c++)

Can't you link against a DLL containing the definition of a thread local
variable?

> 3) The module info should be exported as soon the module has any exported
symbols

Makes sense to me.

> 4) __gshared members of a class are not exported
fixed by bug 10059

> 5) The TypeInfo Object of the TestClass is not exported
> 6) The TypeInfo Object of TestStruct is not exported

If a user defined type is exported all compiler-generated metadata, vtables,
TypeInfo, RTInfo!Type etc., should be exported too.

I'm not positive if exporting a UDT should imply that all it's members are
exported too.

To add export annotations in druntime/phobos we need to fix bug 922.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list