[Issue 6251] New: D spec should warn about using foreach_reverse on a delegate

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 5 04:05:23 PDT 2011


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

           Summary: D spec should warn about using foreach_reverse on a
                    delegate
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nobody at puremagic.com
        ReportedBy: schveiguy at yahoo.com


--- Comment #0 from Steven Schveighoffer <schveiguy at yahoo.com> 2011-07-05 04:00:17 PDT ---
Currently, foreach_reverse on a delegate is equivalent to using foreach on a
delegate.  A novice user might expect foreach_reverse to somehow force the
delegate to iterate its elements in reverse.  In order to prevent more bugs
being filed on this issue, the documentation should specifically identify that
foreach_reverse on a delegate does not reverse the order of iteration, and so
should not be used.

This is related to bug 1553

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