D.gnu - [Issue 1606] New: Cannot insert to void[int]. void[int] should be a hash set.
- d-bugmail puremagic.com (21/21) Oct 21 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1606
- d-bugmail puremagic.com (10/10) Oct 23 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1606
- d-bugmail puremagic.com (16/16) Oct 23 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1606
- d-bugmail puremagic.com (4/4) Oct 23 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1606
- d-bugmail puremagic.com (11/11) Oct 23 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1606
http://d.puremagic.com/issues/show_bug.cgi?id=1606 Summary: Cannot insert to void[int]. void[int] should be a hash set. Product: DGCC aka GDC Version: 0.24 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: glue layer AssignedTo: dvdfrdmn users.sf.net ReportedBy: pop.atry gmail.com alias void[int] IntSet; void main(){ IntSet intSet; intSet[6] = void; intSet.remove(6); } IntSet.d(4): found ';' when expecting '.' following 'void' --
Oct 21 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1606 davidl 126.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID void is not a value but a type. intSet[6] = void; <--- seems you want to assign void to intSet[6]? --
Oct 23 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1606 pop.atry gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | alias void[int] IntSet; void makeVoid(){} void main(){ IntSet intSet; intSet[6] = makeVoid(); intSet.remove(6); } But this one also does not work. --
Oct 23 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1606 There should be a way to insert a key to void[int]. --
Oct 23 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1606 I think that the bug is that void arrays are permitted at all. What exactly is an array of nothings? And if you had one, does it take up any memory. If what you are asking for is a set of hashed keys, then use... bool[int] or byte[int] At least these mean something. What exactly are you expecting to be able to set a void to? --
Oct 23 2007