[Issue 4707] auto ref for foreach loops

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4707 Iain Buclaw changed: What|Removed |Added Priority|P2 |P4 --

[Issue 4707] auto ref for foreach loops

2013-11-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4707 monarchdo...@gmail.com changed: What|Removed |Added CC||monarchdo...@gmail.com ---

[Issue 4707] auto ref for foreach loops

2013-11-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4707 Martin Nowak c...@dawg.eu changed: What|Removed |Added CC||c...@dawg.eu --- Comment

[Issue 4707] auto ref for foreach loops

2010-08-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4707 --- Comment #3 from David Simcha dsim...@yahoo.com 2010-08-29 21:33:04 PDT --- Another use case for this is if you are iterating over something that may be expensive to copy. In these cases, doing foreach(elem; stuff) is inefficient because it

[Issue 4707] auto ref for foreach loops

2010-08-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4707 nfx...@gmail.com changed: What|Removed |Added CC||nfx...@gmail.com --- Comment #1

[Issue 4707] auto ref for foreach loops

2010-08-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4707 --- Comment #2 from David Simcha dsim...@yahoo.com 2010-08-21 20:49:02 PDT --- Because if the range didn't support ref iteration, the foreach loop would work with non-ref iteration rather than producing a compile time error.(In reply to comment