version and debug statements

Walter Bright newshound at digitalmars.com
Thu May 11 18:24:17 PDT 2006


James Pelcis wrote:
> If you are writing a program that will only work on Windows, it would be 
> necessary to use this...
> 
> version (Windows)
> else
> {
>     static assert (0);
> }

Instead of:

	... windows code ...
	version (Windows)
	else
		static assert(0);

I suggest:

	version (Windows)
		... windows code ...
	else
		static assert(0);



More information about the Digitalmars-d mailing list