[Issue 929] Resizing array of associative arrays (uint[char[]][]) causes infinite loop / hang

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 2 20:56:23 PDT 2008


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





------- Comment #14 from wbaxter at gmail.com  2008-10-02 22:56 -------
(In reply to comment #7)
> Ouch.  This one just bit me too.
> So throw in my "vote" or whatever.
> This needs a-fixin' pronto.
> 
> Thanks for the workaround suggestion, Nick.
> 

This just bit me again!

Also one new tidbit of info: in addition to using a class to work around this
you can also wrap the AA in a struct.

struct CharToUint
{
    uint[char[]] map;
}

CharToUint[] x;  x.length = 20;  // no probs


-- 



More information about the Digitalmars-d-bugs mailing list