On 1/2/14, Cooler <[email protected]> wrote:
> Interesting... What is a profit of this solution over simple
> bool[int]?

AFAIK it will make the druntime hashes avoid allocating memory for the
value type, because:

assert(bool.sizeof == 1);
assert((void[0]).sizeof == 0);

Note that void[0] is different from void[], as the latter is really
two size_t types in a struct.

Reply via email to