static if syntax
bearophile
bearophileHUGS at lycos.com
Thu Jun 4 11:32:08 PDT 2009
Steve Teale:
>is the block after the final else 'static'?<
Yes, it is.
>Would it be better if the 'static' before the whole sequence of tests applied throughout rather than having to be explicitly restated in some places, but not in others?<
Few times I have forgotten to put a "static" in such chain of static ifs (so I may appreciate a kind of static switch) but in practice I think your idea will lead to other bugs. So it may be better to not change the current design.
Bye,
bearophile
More information about the Digitalmars-d
mailing list