www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Should static if be allowed at module level?

static if is technically a kind of conditional compilation.

version and debug are other forms of conditional compilation.

version and debug are allowed at module level, while static if is only 
allowed in functions.

Other static constructs, such as static assert, are allowed at module level.

Do you think static if should be? 
Jul 20 2005