Bug 3839 – std.range.iota cannot take 'long' arguments.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2010-02-21T03:06:00Z
Last change time
2010-06-23T08:51:51Z
Assigned to
nobody
Creator
kennytm

Comments

Comment #0 by kennytm — 2010-02-21T03:06:41Z
import std.range; void main() { iota(1L, 10L); } Expected: Compile successfully. Actually happening: Compile error with /usr/include/phobos/std/range.d(2158): Error: cannot implicitly convert expression (aBitAboveCount) of type long to uint
Comment #1 by kennytm — 2010-06-22T23:31:59Z
As of Phobos r1686 the code still cannot compile correctly. The new error is /usr/include/phobos/std/range.d(2161): Error: cannot implicitly convert expression ((this.pastLast - this.current) / cast(long)this.step) of type long to uint
Comment #2 by andrei — 2010-06-23T08:51:51Z