[Issue 1606] Cannot insert to void[int]. void[int] should be a hash set.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 24 02:52:34 PST 2008


http://d.puremagic.com/issues/show_bug.cgi?id=1606





------- Comment #7 from thecybershadow at gmail.com  2008-01-24 04:52 -------
I disagree - IMO it should return a bool, because the "in" operator is more
often used to check if the key is part of the AA/set. I think sets are used
commonly enough to be part of the base language, and not just achievable
through the less efficient dummytype[type] hack. While I agree with the
void[type] declaration syntax, I think adding new values should be done through
a .add() "method", which would be in line with .remove().


-- 



More information about the Digitalmars-d-bugs mailing list