The OpenD Programming Language

BitArray.opIndex

Gets the i'th bit in the BitArray.

struct BitArray
const @nogc pure nothrow
bool
opIndex
(
size_t i
)

Examples

static void fun(const BitArray arr)
{
    auto x = arr[0];
    assert(x == 1);
}
BitArray a;
a.length = 3;
a[0] = 1;
fun(a);

Meta