[Issue 1553] foreach_reverse is allowed for delegates

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 1 18:34:02 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=1553



--- Comment #3 from Vladimir Panteleev <thecybershadow at gmail.com> 2011-07-01 18:29:03 PDT ---
Walter, did you understand the bug report correctly? My 4-year-old explanation
could have been better, but what I meant is that:

foreach (v; someDelegate) { ... }

did the exact same thing as 

foreach_reverse (v; someDelegate) { ... }

Someone may try to use foreach_reverse intuitively over a delegate, hoping
it'll "just work", and get unexpected results (as I have 4 years ago).

-- 
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