← Back to index
|
Original Bugzilla link
Bug 4461 – iota completely broken when using negative integers
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2010-07-14T12:25:00Z
Last change time
2010-08-10T20:59:26Z
Assigned to
nobody
Creator
dsimcha
Comments
Comment #0
by dsimcha — 2010-07-14T12:25:08Z
Test Case: import std.range, std.array, std.stdio; void main() { writeln(array(iota(-5, 5))); // FAIL writeln(array(iota(-5, 5, 1))); // FAIL writeln(array(iota(-5.0, 5.0))); // Works. } Output: 4294967291 4294967292 4294967293 4294967294 4294967295 0 1 2 3 4 4294967291 4294967292 4294967293 4294967294 4294967295 0 1 2 3 4 -5 -4 -3 -2 -1 0 1 2 3 4
Comment #1
by kennytm — 2010-08-09T11:13:35Z
Cannot reproduce on Phobos r1824. I think it is fixed already.
Comment #2
by dsimcha — 2010-08-10T20:59:26Z
You're right. Iota was revamped for 2.048 and this apparently got fixed.