attribute decl in version decl
Ellery Newcomer
ellery-newcomer at utulsa.edu
Sun Sep 18 15:17:17 PDT 2011
On 09/18/2011 04:09 PM, Trass3r wrote:
> Am 18.09.2011, 18:55 Uhr, schrieb Ellery Newcomer
> <ellery-newcomer at utulsa.edu>:
>
>> Just came across some old D code that does this:
>>
>> version(linux){
>> extern(C):
>> }
>>
>> <Hundreds of OpenGL decls>
>>
>>
>>
>> in dmd 2.055, the extern(C) is not being applied to the OpenGL decls.
>> should it?
>
> Walter once said it was deliberate.
> That extern(C) is only valid inside the version block.
> But I also think it should be the other way around.
Really.
Wonder how gunroar ever compiled
More information about the Digitalmars-d-learn
mailing list