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

Meta via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 1 08:51:44 PDT 2016


On Thursday, 31 March 2016 at 19:24:14 UTC, deadalnix wrote:
> Pretty much as per title. I has that in the back of my mind for 
> a while. Would that work ?

We could do something similar as what's done with string and add 
an `alias set(T) = void[T]`, then provide the necessary helper 
functions such as add and remove. However, that still leaves no 
way to initialize a set with a literal.


More information about the Digitalmars-d mailing list