Could we reserve void[T] for builtin set of T ?

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 31 14:37:16 PDT 2016


On 3/31/2016 12:58 PM, H. S. Teoh via Digitalmars-d wrote:
> How is this different from bool[T] then? Just the fact that you can't
> get a reference to the bool?

Differences are:

1. it uses less storage, as the bool is implied
2. you cannot have a key in the set that has an associated value of false
3. as you said, you cannot get a reference to the bool (because it is implied)



More information about the Digitalmars-d mailing list