[Issue 1245] static foreach shouldn't define new scope and introduce new variables
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri May 25 10:17:18 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1245
shro8822 at uidaho.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |shro8822 at uidaho.edu
------- Comment #4 from shro8822 at uidaho.edu 2007-05-25 12:17 -------
The issue I have is that int the foreach loop the value of i gets pushed onto
the stack. (I was looking at the ASM dump from DMD linux)
foreach(i, j; T!(1,2,3)
{
asm{nop;};
}
should compeile to
nop;
nop;
nop;
--
More information about the Digitalmars-d-bugs
mailing list