[Issue 5891] New: hasLength!iota is false
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 26 06:22:59 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5891
Summary: hasLength!iota is false
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: regression
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: dsimcha at yahoo.com
--- Comment #0 from David Simcha <dsimcha at yahoo.com> 2011-04-26 06:19:17 PDT ---
With the latest SVN versions of Phobos and DMD the following static assert
fails:
import std.range;
void main() {
auto myIota = iota(1000);
static assert(hasLength!(typeof(myIota)));
}
IMHO this is a blocker for releasing 2.053 because iota is very frequently used
with parallel foreach loops and parallel foreach is much less efficient if
iterating over a range without a length.
--
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