On Sunday, 20 October 2013 at 12:33:27 UTC, bearophile wrote:
Denis Shelomovskij:
Issue URL: http://d.puremagic.com/issues/show_bug.cgi?id=1553
I suggest to keep foreach_reverse in the language, but
statically disallow it on delegates.
+1
foreach_reverse is ugly, but works, and there's no point breaking
code just to tidy things up a little.
foreach_reverse on delegates on the other hand is completely
broken, so should be statically disallowed (preferably with a
nice error message explaining that the current behaviour is
broken!)