[Issue 7024] inconsistent mangling of shared in extern(C++)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 3 06:46:03 PST 2011


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



--- Comment #9 from dawg at dawgfoto.de 2011-12-03 06:44:56 PST ---
- The current D policy is to not base such things on trust but
   require explicit casting.

 - You have no way to guarantee atomic access for shared in C++.

 - Overloaded extern(C++) functions will clash during linking or
   even worse resolve to the same symbol.

The only pro argument is less typing for the caller,
where the example code just showed another solution to this.

-- 
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