August 22, 2014 Re: BitArray - preview of what's to come? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Era Scarecrow | bool[4] x = [1, 1, 0, 0]; BitArray ba = BitArray(x); When I try to compile this I am getting error: source\app.d(13): Error: cannot implicitly convert expression (x) of type bool[4] to uint What I am doing wrong? |
August 22, 2014 Re: BitArray - preview of what's to come? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Suliman | Suliman:
> bool[4] x = [1, 1, 0, 0];
> BitArray ba = BitArray(x);
>
> When I try to compile this I am getting error:
> source\app.d(13): Error: cannot implicitly convert expression (x) of type bool[4] to uint
>
> What I am doing wrong?
It still lacks some features like a constructor that accepts a (lazy or eager) Range of bits/bools.
Bye,
bearophile
|
Copyright © 1999-2021 by the D Language Foundation