Thread overview |
---|
October 22, 2007 [Issue 1606] New: Cannot insert to void[int]. void[int] should be a hash set. | ||||
---|---|---|---|---|
| ||||
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' -- |
October 24, 2007 [Issue 1606] Cannot insert to void[int]. void[int] should be a hash set. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1606 davidl@126.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #1 from davidl@126.com 2007-10-23 20:19 ------- void is not a value but a type. intSet[6] = void; <--- seems you want to assign void to intSet[6]? -- |
October 24, 2007 [Issue 1606] Cannot insert to void[int]. void[int] should be a hash set. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1606 pop.atry@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Comment #2 from pop.atry@gmail.com 2007-10-23 22:38 ------- alias void[int] IntSet; void makeVoid(){} void main(){ IntSet intSet; intSet[6] = makeVoid(); intSet.remove(6); } But this one also does not work. -- |
October 24, 2007 [Issue 1606] Cannot insert to void[int]. void[int] should be a hash set. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1606 ------- Comment #3 from pop.atry@gmail.com 2007-10-23 22:40 ------- There should be a way to insert a key to void[int]. -- |
October 24, 2007 [Issue 1606] Cannot insert to void[int]. void[int] should be a hash set. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1606 ------- Comment #4 from ddparnell@bigpond.com 2007-10-23 23:37 ------- 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? -- |
Copyright © 1999-2021 by the D Language Foundation