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 produces an unnecessary copy, but foreach(ref elem; stuff) isn't
generic enough because it won't work on ranges w/o lvalue elements.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to