extern(C++, ns)

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Wed Jan 20 13:47:55 PST 2016


On 01/20/2016 09:56 PM, Walter Bright wrote:
> On 1/20/2016 4:17 AM, Manu via Digitalmars-d wrote:
>> -- name.x.d--------------------
>> module name.x;
>> -- name.y.d--------------------
>> module name.y;
>> import name.x;
>> extern(C++, name) int x;
>> ------------------------------------
>
> This won't work  ...

The suggestion was to just not introduce a new symbol/scope for the 
namespace. It would certainly work.


More information about the Digitalmars-d mailing list