std.range.iota enhancement: supporting more types (AKA issue 10762)

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Tue Dec 24 07:51:26 PST 2013


On 24/12/13 16:39, H. S. Teoh wrote:
> This code is wrong for iota(1.0, 9.5), because .back must be of the form
> start + n*step for some integer n, but in this case end is not an
> integral multiple of step away from start. (It's not only wrong for
> .back, it also won't terminate because start==end will never hold.)

I don't see the reason why there needs to be a start == end condition -- surely 
start >= end will suffice?



More information about the Digitalmars-d mailing list