Invalid bounding interval [, ]
Timon Gehr
timon.gehr at gmx.ch
Tue Jan 24 20:07:49 PST 2012
On 01/25/2012 04:50 AM, bearophile wrote:
> C:
>
>> I want to fill a ubyte array with random data.
>
> In D ubytes are not char, they are two different types. So if you want ubytes, then use ubytes:
> uniform!("[]")(ubyte.min, ubyte.max)
>
>
> Regarding your error, a reduced test case:
>
> import std.random: uniform;
> void main() {
> uniform!("[]")(char.min, char.max);
> uniform!("(]")(char.min, char.max);
> }
>
> Bye,
> bearophile
Even more reduced test case and bug report:
http://d.puremagic.com/issues/show_bug.cgi?id=7367
More information about the Digitalmars-d-learn
mailing list