WTF?

Jascha Wetzel firstname at mainia.de
Fri Mar 14 02:04:50 PDT 2008


BCS wrote:
> I'm not objecting but...
> 
> this compiles (1.026):
> 
> import std.stdio; void main()
> {
>     int j = 3;
>     for({ int i; if(j>2) i = 3; else i = 4; } i; i--)
>     {
>         writef("%d\n", i);
>     }
> }
> 
> 

the specs clearly allow this, since a NoScopeNonEmptyStatement may be a 
BlockStatement.



More information about the Digitalmars-d mailing list