static if syntax

Steve Teale steve.teale at britseyeview.com
Thu Jun 4 11:24:15 PDT 2009


If I write:

static if (cond1)
{
 ...
}
else static if (cond2)
{
 ...
}
else
{
 ...
}

is the block after the final else 'static'? 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?

Steve




More information about the Digitalmars-d mailing list