[Issue 1553] foreach_reverse is allowed for delegates
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 12 23:47:55 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=1553
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrei at erdani.com,
| |andrej.mitrovich at gmail.com
--- Comment #16 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-02-12 23:47:47 PST ---
Simply documenting this misfeature is not enough, and it's going to look really
stubborn to see it being documented that 'foreach_reverse' does the same thing
as 'foreach' in some X or Y context.
Does std.range.retro accept an input range and document itself with: "If you
pass an input range retro() will not actually reverse the iteration." ?
That would be ridiculous, instead it verifies that you're passing a
Bidirectional range at compile-time. I'm gonna CC Andrei on this one and
hopefully we get a go-ahead to merge
https://github.com/D-Programming-Language/dmd/pull/184.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list