Bug 16632 – "for" statement treats scoped block in increment section as lambda
Status
RESOLVED
Resolution
DUPLICATE
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-10-21T14:53:31Z
Last change time
2022-11-11T12:27:27Z
Assigned to
No Owner
Creator
RazvanN
Comments
Comment #0 by razvan.nitu1305 — 2016-10-21T14:53:31Z
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/[email protected]
Comment #1 by razvan.nitu1305 — 2022-11-11T12:27:27Z
*** This issue has been marked as a duplicate of issue 16672 ***