http://d.puremagic.com/issues/show_bug.cgi?id=10009
--- Comment #3 from [email protected] 2013-04-29 15:59:48 PDT --- (In reply to comment #2) > I have hundreds of usages of foreach_reverse in my D2 codebase. You aren't > going to deprecate it. retro() is not nearly as efficient for arrays. Sorry, my brain was switched off. And the usages are probably under one hundred. ----------------- (In reply to comment #1) > I think foreach_reverse was only ever meant to be used with arrays (and is > scheduled for deprecations), for ranges you can use retro() from > std.algorithm. Maybe the compiler can rewrite this: foreach_reverse(x; someRange) as: foreach(x; someRange.retro) But I don't know what problems this causes. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
