[Issue 16632] New: "for" statemenet issue

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Oct 21 07:53:31 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16632

          Issue ID: 16632
           Summary: "for" statemenet issue
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: razvan.nitu1305 at gmail.com

How should the compiler treat this code?

int j;
for({j=2; int d = 3; } j+d<7; {j++; d++;}) {
}

A discussion regarding this code can be found at: 

http://forum.dlang.org/post/nud21i$o29$1@digitalmars.com

--


More information about the Digitalmars-d-bugs mailing list