www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16632] New: "for" statemenet issue


          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 puremagic.com
          Reporter: razvan.nitu1305 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

Oct 21 2016