[Issue 2732] Setting new key for Associative Array of Static Array causes RangeError

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 29 20:36:13 PDT 2009


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


unknown at simplemachines.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |unknown at simplemachines.org




------- Comment #1 from unknown at simplemachines.org  2009-03-29 22:36 -------
Simplified test case:

int[1][int] hash = null;
int[1] v = [1];

//*(hash[0]) = 42;
hash[0] = v;

Uncomment the commented line, and it works.  It looks to me as if |hash[0] =
var;| isn't being treated as an initialization of the key, for some reason.

-[Unknown]


-- 



More information about the Digitalmars-d-bugs mailing list