[Issue 7937] New: Range iota.Result should be const where possible

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 18 11:32:59 PDT 2012


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

           Summary: Range iota.Result should be const where possible
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: andre.stein.1985 at gmail.com


--- Comment #0 from andre.stein.1985 at gmail.com 2012-04-18 11:33:52 PDT ---
The operators opSlice and opIndex of iota.Result should be const as they don't
mutate the range. This allows passing the range as const to functions which
only use those two operators.

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