[Issue 5746] Make std.range.iota strongly pure

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 14 03:08:14 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=5746


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #1 from bearophile_hugs at eml.cc 2014-01-14 03:08:09 PST ---
Fixed in recent Phobos updated, now this compiles:

void main() pure {
    import std.range: iota;
    foreach (_; iota(10)) {}
    foreach (_; iota(1, 10)) {}
    foreach (_; iota(10, 1, -1)) {}
}

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


More information about the Digitalmars-d-bugs mailing list