Should an 'extern(C++, "ns"):' override previous ones in the same scope?

Exil Exil at gmall.com
Sat Sep 7 21:40:58 UTC 2019


On Saturday, 7 September 2019 at 17:22:07 UTC, Jonathan M Davis 
wrote:
>
> @safe:
> @system:
>
> then @system overrides @safe.

Just to add onto this, you can't do:

     @safe @system void foo(); // error


but you can do:

     extern(C++, ns1) extern(C++, ns2) void foo(); // ok




More information about the Digitalmars-d-learn mailing list