minwin

Anders F Björklund afb at algonet.se
Wed Nov 29 14:14:33 PST 2006


Sean Kelly wrote:

>> I'm sure that things would be different if writing new D code,
>> and not just porting C/C++ stuff over - which is where I usually
>> run into wanting a #ifndef or other similar predefined versions.
>> I don't *want* to change the macros, since they're in the API...
> 
> Doesn't 'static if' fit the bill here?

It probably does. Just wasn't around when I started with D,
so I haven't really gotten used to using it instead... :-)

--anders



More information about the Digitalmars-d-announce mailing list