extern(C) symbol conflicts

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 27 12:31:17 PST 2015


On 1/27/15 3:11 PM, Jacob Carlborg wrote:
> On 2015-01-27 19:13, Steven Schveighoffer wrote:
>
>> I would say if two extern(C) declarations are identical (i.e. same
>> parameter types, same attributes), they don't conflict. What does this
>> break?
>
> It it's extern(C), shouldn't just the name matter?
>

For instance, if one library tags it as pure, but another does not. I 
think an error in that case is warranted.

-Steve


More information about the Digitalmars-d mailing list