Could we reserve void[T] for builtin set of T ?
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Thu Mar 31 14:44:15 PDT 2016
On 3/31/16 5:09 PM, Ali Çehreli wrote:
> On 03/31/2016 01:39 PM, Steven Schveighoffer wrote:
>
> > But how do you add a key to the set? Currently only allowed via:
> >
> > a[x] = ...;
>
> Expanding on Walter's idea:
>
> a[x] = shared(void); // add
> a[x] = void; // remove
>
> Ali
> "ducks and runs for cover" :)
>
hm... I suppose:
a[x] = void;
could add. Removal is never done by assigning, only by aa.remove.
-Steve
More information about the Digitalmars-d
mailing list