std.bitarray

Saaa empty at needmail.com
Fri Sep 18 10:17:39 PDT 2009


Ah, slicing, of course, thanks!


> Hello Saaa,
>
>> I understand a bitarray being faster than a boolean array as the first
>> uses
>> bitwise (hardware) operators.
>> Is this a correct understanding of the situation?
>> Why then is a boolean array not implemented in that way?
>
> Because you can't slice a bit array the same way you can slice a int or 
> byte array. D used to have a bit type and bit arrays where primitives but 
> it made for all kinds of problems when you wanted to do slices.
>
> 




More information about the Digitalmars-d-learn mailing list