[Issue 10009] foreach_reverse and AA.byKey/byValue

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 6 11:25:27 PDT 2013


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



--- Comment #11 from Steven Schveighoffer <schveiguy at yahoo.com> 2013-05-06 11:25:25 PDT ---
(In reply to comment #10)

> Which is essentially the same problem as bug# 6251.

Not exactly.  AA is a type, not a delegate.  It is allowed to define
opApplyReverse.  A delegate cannot possibly be valid with foreach_reverse (and
that bug should be killed with prejudice).

Even if opApplyReverse is defined for AAs, the implementation will be wrong (as
bearophile described) because it's built from singly linked lists.

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