On Thu, Mar 31, 2016 at 09:39:53PM +0200, Jacob Carlborg via Digitalmars-d wrote: > On 2016-03-31 21:29, H. S. Teoh via Digitalmars-d wrote: > >On Thu, Mar 31, 2016 at 07:24:14PM +0000, deadalnix via Digitalmars-d wrote: > >>Pretty much as per title. I has that in the back of my mind for a > >>while. Would that work ? > > > >What's a "builtin set of T"? > > int[string] is a built-in associative array, void[string] would be the same > but a set [1] instead. "T" in his example of be "some type". > > [1] https://en.wikipedia.org/wiki/Set_%28abstract_data_type%29 [...]
Ah, makes sense. But what would aa[x] return? And how would you add elements to it? The current syntax doesn't seem to make sense for sets. T -- Bare foot: (n.) A device for locating thumb tacks on the floor.
