Playing around with BitArray I encountered the seemingly strange
interface of
---
bool[] b = [0, 1, 0];
BitArray a;
a.init(b);
---
Is there any reason 'init' is used rather than using a
constructor?
bool[] b = [0, 1, 0];
BitArray a = BitArray(b);
Seems a bit cl
On Friday, 10 January 2014 at 02:08:21 UTC, Adam S wrote:
Can anyone explain the reason for this setup?
BitArray was mostly written back in the D1 days, before structs
were allowed to have constructors. It got partially updated, but
the majority of its code is still an old style.
I recently