Why can't I resize an array of associative arrays?

Justin mrjnewt at hotmail.com
Tue Nov 18 13:05:52 PST 2008


I'd like to have an array (plain vanilla) of associate arrays. I'm thinking of it as a sort of table, with the header for each column being the key of the element. Strangely, though, the following program simply doesn't work; it doesn't crash--it just hangs (before printing out the array length).

module test2;

import std.stdio,
	std.string;
	
static void main() {

	string[string][] arrayOfAAs;
	arrayOfAAs.length = 9;
	writefln(arrayOfAAs.length);

}


More information about the Digitalmars-d-learn mailing list