On Wed, Feb 11, 2009 at 4:11 PM, Bill Baxter <wbax...@gmail.com> wrote:
>
> I thought he meant this:
>
> // once at the top
> version(SomeFeatureDisabled) {
> } else { version = SomeFeature; }
>
> // in rest of code ...
> version (SomeFeature)
> {
>    codeForFeature();
> }

I don't know whether or not Walter _was_ actually insinuating that but
it's a pretty good idea ;)  the only disadvantage of course being that
I have to copy the //once at the top part into every file that wants
to use the SomeFeature version, though that probably
wouldn't/shouldn't be a big issue in practice.

Reply via email to