#ifdef hell

anonymous via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 30 08:28:48 PDT 2015


On Thursday, 29 October 2015 at 23:10:38 UTC, Walter Bright wrote:
> On 10/29/2015 3:23 PM, rsw0x wrote:
>> On Thursday, 29 October 2015 at 22:18:11 UTC, Walter Bright 
>> wrote:
>>> https://www.cqse.eu/en/blog/living-in-the-ifdef-hell/
>>>
>>> Another voice on what is wrong with the snarl of #ifdef's.
>>
>> how does this differ from static if and version(x) hell?
>
> We advise people not to use static if to do what version(x) 
> eschews, and suggest better alternatives.

The same thing can be said about #ifdef. Conventional wisdom in 
C++ says there's better ways, but the abuse compiles thus 
continually abused.


More information about the Digitalmars-d mailing list