Error with associative array initializer

Peter Neubauer admiral.nything at gmail.com
Sat Jun 30 09:51:58 PDT 2007


Thanks, that fixed it for me!

char[][int] stuff2 = [
	0: "abc"[],
	1: "de",
	2: "anylengthstring"
];

Frits van Bommel Wrote:
> Make sure the type of the first expression is a dynamic array. "ab"[] or 
> cast(char[])"ab" would work.



More information about the Digitalmars-d-learn mailing list