http://d.puremagic.com/issues/show_bug.cgi?id=7245
--- Comment #1 from Denis <[email protected]> 2012-01-08 08:57:25 MSK --- Another illustration (foreach is in function now): --- int func() { int[2] arr; int* ptr; void f() { //Error: variable __aggr3 is used before initialization foreach(i, ref p; arr) if(i == 0) ptr = &p; } f(); int i = *ptr; return 0; } enum e = func(); --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
