On Wednesday, 21 March 2012 at 10:51:05 UTC, Stephan wrote:
Hi,I have an associative array with strings as keys and static arrays as values. When I access a new key, it gives me Range Error, so I think I should initialise the associative array, but how?here is the code that fails: int[100][string] counts; counts["some_key"][20]++; // core.exception.RangeError@freqSpec(26): Range violation Thanks, Stephan
int[100][string] counts; int[100] a; counts["some_key"] = a; counts["some_key"][20]++;