Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
August 25, 2010 [Issue 4723] New: AssociativeArray's bug | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=4723 Summary: AssociativeArray's bug Product: D Version: D2 Platform: Other URL: http://hibari.2ch.net/test/read.cgi/tech/1281826764/43 -44 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: zan77137@nifty.com Depends on: 3962 --- Comment #0 from SHOO <zan77137@nifty.com> 2010-08-25 06:00:00 PDT --- This code doesn't work: void main() { int[int] a = (int[int]).init; a[1] = 2; } This makes runtime error: object.Error: Integer Divide by Zero And this: void main() { int[int] a = (int[int]).init; a[1] = 2; } This makes compiletime error: Error: incompatible types for ((a) == (AssociativeArray(null))): 'int[int]' and 'AssociativeArray!(int,int)' These bug probably depends on this: http://d.puremagic.com/issues/show_bug.cgi?id=3962 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 25, 2010 [Issue 4723] AssociativeArray's bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to SHOO | http://d.puremagic.com/issues/show_bug.cgi?id=4723 --- Comment #1 from SHOO <zan77137@nifty.com> 2010-08-25 06:06:48 PDT --- Sorry, I missed. Correctly for #2: void main() { int[int] a; assert(a == a.init); } Error: incompatible types for ((a) == (AssociativeArray(null))): 'int[int]' and 'AssociativeArray!(int,int)' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 04, 2011 [Issue 4723] Bugs with Associative Arrays .init: Integer Divide by Zero / incompatible types | ||||
---|---|---|---|---|
| ||||
Posted in reply to SHOO | http://d.puremagic.com/issues/show_bug.cgi?id=4723 dawg@dawgfoto.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dawg@dawgfoto.de Resolution| |DUPLICATE --- Comment #2 from dawg@dawgfoto.de 2011-08-04 02:18:38 PDT --- *** This issue has been marked as a duplicate of issue 6433 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation