www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11077] New: iota() should be statically specialized for increment 1

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

           Summary: iota() should be statically specialized for increment
                    1
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrei erdani.com



PDT ---
iota() for integrals stores the step as a member variable. This makes the
frequent case step=1 slower than it should. Calls using iota(max) or iota(min,
max) should return a structure not storing step, and using ++ to get to the
next item.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 20 2013