Why version() ?
Don
nospam at nospam.com
Tue Feb 10 21:11:36 PST 2009
Walter Bright wrote:
> Denis Koroskin wrote:
>> Why did you catch that controversial !Linux example? Just imagine it
>> is !HasFeatureX:
>>
>> version(!HasFeatureX) {
>> ...
>> }
>>
>> is so much more intuitive than
>>
>> version (HasFeatureX) {
>> } else {
>> ...
>> }
>
>
> This is to combat the pernicious problem of having features that
> subtract code <g>.
I've got two words for you, Walter.
Compiler bugs.
More information about the Digitalmars-d
mailing list