http://d.puremagic.com/issues/show_bug.cgi?id=9437
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from [email protected] 2013-02-01 06:00:04 PST --- This works as intended, and is the documented behavior of foreach. foreach is supposed to be used on the elements only. You cannot add, remove, or interface with the range in general during a foreach. If you need a more specific behavior, just use a for: void main( string[] args ){ R r = R( "Hello D users" ); for( ; !r.empty ; r.popFront() ) { auto l = r.front; writeln( l, ", ", r.front() ); } } Please see the thread in regards to the mm file thing. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
