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

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 31 14:24:05 PDT 2016


On Thursday, 31 March 2016 at 20:39:36 UTC, Steven Schveighoffer 
wrote:
> But how do you add a key to the set? Currently only allowed via:
>
> a[x] = ...;

Oh yeah... when I use a built in AA as a set now, I either set it 
to true or to itself:

string[string] lameSet;

lameSet[a] = a;

lameSet.remove(a);

so i guess one of those could happen


More information about the Digitalmars-d mailing list