extern(C++, ns)

Marc Schütz via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 22 06:37:24 PST 2016


On Thursday, 21 January 2016 at 00:51:34 UTC, Anon wrote:
> What would you all say to the following proposal (and should I 
> make a DIP?)
>
>
> 1. deprecate pragma(mangle)
> 2. deprecate extern(C++, ns)
> 3. deprecate @selector()
> 4. Introduce a better, more general extern() as follows:
>
> extern ( <LanguageIdent> [, <String> ] )
> ...

I was going to propose an additional syntax `extern(C++, 
"string")` (that doesn't introduce a scope) as a compromise, but 
your suggestion to extend it to all kinds of foreign languages is 
even better. I haven't read your proposal in detail, but I 
definitely like the general idea.


More information about the Digitalmars-d mailing list