DMD 1.005 release

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Thu Feb 8 02:49:24 PST 2007


BCS wrote:
> Derek Parnell wrote:
>> On Wed, 07 Feb 2007 11:50:50 -0800, BCS wrote:
>>
>> So in your example above ...
>>
>>   version(build) pragma(export_version, Foo, Bar);
>>
> 
> Cool, but I think that would be
> 
>  version(Foo) pragma(export_version, Bar);

No, you need both version()s:
     version(build) version(Foo) pragma(export_version, Bar);
or
     version(Foo) version(build) pragma(export_version, Bar);

An unknown pragma is an error, so you need to put build-specific pragmas 
in a version(build).



More information about the Digitalmars-d-announce mailing list