Petition to chime in Issue 1553 - foreach_reverse is allowed for delegates
Peter Alexander
peter.alexander.au at gmail.com
Sun Oct 20 06:55:41 PDT 2013
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!)
More information about the Digitalmars-d
mailing list