"for" statement issue

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 21 05:42:24 PDT 2016


On Friday, 21 October 2016 at 12:34:58 UTC, Andrei Alexandrescu 
wrote:
> I got a question about what happens with this code:
>
> int j;
> for({j=2; int d = 3; } j+d<7; {j++; d++;}) {
> }
>
> [...]
We could restrict the initialze part to assignments only. But I 
am unsure of the implications.
How did you find this case?


More information about the Digitalmars-d mailing list