Could we reserve void[T] for builtin set of T ?
H. S. Teoh via Digitalmars-d
digitalmars-d at puremagic.com
Thu Mar 31 14:16:58 PDT 2016
On Thu, Mar 31, 2016 at 02:09:30PM -0700, Ali Çehreli via Digitalmars-d 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" :)
Yes you better run, that syntax is so atrocious I'm reaching for my
rotten tomatoes... :-P
T
--
Don't modify spaghetti code unless you can eat the consequences.
More information about the Digitalmars-d
mailing list