extern(C++, NS)

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 30 06:40:50 PST 2015


On Monday, 30 November 2015 at 14:22:17 UTC, Timon Gehr wrote:
> On 11/29/2015 12:13 PM, Ola Fosheim Grøstad wrote:
>> On a related note, does D support inline namespaces? 
>> Apparently it
>> affects mangling:
>>
>> http://stackoverflow.com/questions/29764869/can-inline-namespaces-be-used-to-keep-backwards-compatibility-in-a-shared-librar
>>
>
> Namespaces affect mangling. The inline keyword doesn't.

The problem is that the inlined namespace can change without 
affecting C++ code. That makes it difficult to make stable 
bindings for D as it is transparent in C++, but non-transparent 
in D. Right?




More information about the Digitalmars-d mailing list