Trouble with lockstep
Craig Dillabaugh
cdillaba at cg.scs.carleton.ca
Mon Jun 24 07:50:54 PDT 2013
On Monday, 24 June 2013 at 14:33:48 UTC, bearophile wrote:
> Craig Dillabaugh:
>
>> foreach( idx, count; lockstep( iota!ubyte(ubyte.min,
>> ubyte.max), bins ) )
>
> Also note that doesn't iterate the whole ubyte range. Maybe we
> need another iota range for that, with a different name or with
> an optional template argument string like "[]" as
> std.random.uniform. Opinions welcome.
>
> Bye,
> bearophile
Opps. Of course.
The optional template argument sounds like a good idea.
Any idea why the original wouldn't compile though?
Craig
More information about the Digitalmars-d-learn
mailing list