[Issue 6251] D spec should warn about using foreach_reverse on a delegate
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 8 15:10:46 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6251
Stewart Gordon <smjg at iname.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |smjg at iname.com
--- Comment #1 from Stewart Gordon <smjg at iname.com> 2011-07-08 15:05:39 PDT ---
It took me a moment to make sense of it. So it basically calls the delegate
applied to the body of the foreach statement in the same way as foreach
(element; object) calls the object's opApply on the body of the foreach
statement?
On this basis, surely foreach_reverse over a delegate should be just illegal?
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list