Why version() ?

Joel C. Salomon joelcsalomon at gmail.com
Wed Feb 11 12:22:54 PST 2009


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
• How do you declare the non-implementation of SomeFeature?

—Joel Salomon



More information about the Digitalmars-d mailing list