[Issue 7024] inconsistent mangling of shared in extern(C++)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 2 12:23:25 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7024
--- Comment #7 from dawg at dawgfoto.de 2011-12-02 12:22:18 PST ---
The baseline of D type system is to disallow things that can't be guaranteed.
C++ definitely can't guarantee any of the three.
To avoid explicit casting at every caller place, you could add
a D wrapper that does the calling.
extern(C++) void _spawn(void function() fun, void* data);
void spawn(extern(C++) void function() fun, shared void* data)
{
_spawn(fun, cast(void*)data);
}
--
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