attribute decl in version decl
Trass3r
un at known.com
Sun Sep 18 14:09:50 PDT 2011
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.
More information about the Digitalmars-d-learn
mailing list