Why version() ?
Nick Sabalausky
a at a.a
Wed Feb 11 13:37:33 PST 2009
"Bill Baxter" <wbaxter at gmail.com> wrote in message
news:mailman.689.1234386722.22690.digitalmars-d at puremagic.com...
>
> // once at the top
> version(SomeFeatureDisabled) {
> } else { version = SomeFeature; }
>
It would be a hell of a lot nicer if we could just write that as:
version SomeFeature = !SomeFeatureDisabled;
or even better, something like:
version SomeFeature.default = true;
More information about the Digitalmars-d
mailing list