DIP61: redone to do extern(C++,N) syntax
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Mon Apr 28 07:08:55 PDT 2014
On Mon, 28 Apr 2014 10:00:56 -0400, Ola Fosheim Grøstad
<ola.fosheim.grostad+dlang at gmail.com> wrote:
> On Monday, 28 April 2014 at 13:47:43 UTC, Steven Schveighoffer wrote:
>> Not ok. This is like having 2 definitions for the same function, linker
>> will not accept that.
>
> No. It is like having 2 matching type declarations. The implementation
> is defined in the C++ source code and is represented as one C++
> object/lib file to the linker. The linker will happily accept that.
Oh sorry, in my head, I was sure they each had implementations ;)
Yeah, I think that should work just fine.
I see now where your objection is. I think either the rule needs to be
better explained, or that it is incorrect.
-Steve
More information about the Digitalmars-d
mailing list