Why version() ?
Walter Bright
newshound1 at digitalmars.com
Wed Feb 11 15:34:03 PST 2009
Joel C. Salomon wrote:
> Walter Bright wrote:
>> So I suggest:
>>
>> version (SomeFeature)
>> {
>> codeForFeature();
>> }
>>
>> is clearer, even if SomeFeature is the default.
>
> Apologies if this is obvious, but:
> • How do you set SomeFeature as default? and
Either via the command line, or by the statement:
version = SomeFeature;
> • How do you declare the non-implementation of SomeFeature?
Don't declare the version SomeFeature.
More information about the Digitalmars-d
mailing list