[Issue 6222] New: A problem with iota() using size_t

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 29 13:38:45 PDT 2011


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

           Summary: A problem with iota() using size_t
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2011-06-29 13:33:50 PDT ---
With DMD 2.053 this apparently goes in infinite loop:


import std.range;
void main() {
    string s;
    foreach (i; iota(0, s.length, 3)) {}
}


What I expect: the foreach loop to loop zero times instead.

See also bug 4603

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