Re: associative array of associative arrays.

2010-08-13 Thread Pelle
On 08/13/2010 01:17 AM, dcoder wrote: Hello. How do you declare and initialize a map that looks like the following: Name => [ Personal Info] Where personal info is type string[string]. I can't get this to compile. I'm wondering what I am doing wrong: import std.stdio; void main() { in

Re: associative array of associative arrays.

2010-08-13 Thread dcoder
== Quote from dennis luehring (dl.so...@gmx.net)'s article > Am 13.08.2010 01:17, schrieb dcoder: > string[string][string] leaders > or try using alias to "see" the light > alias string[string] city_info; > city_info[string] leaders; Ah, thanks. string[string[string]] maps type string[string] as

Re: associative array of associative arrays.

2010-08-12 Thread dennis luehring
Am 13.08.2010 01:17, schrieb dcoder: string[string][string] leaders or try using alias to "see" the light alias string[string] city_info; city_info[string] leaders; Hello. How do you declare and initialize a map that looks like the following: Name => [ Personal Info] Where personal info

associative array of associative arrays.

2010-08-12 Thread dcoder
Hello. How do you declare and initialize a map that looks like the following: Name => [ Personal Info] Where personal info is type string[string]. I can't get this to compile. I'm wondering what I am doing wrong: import std.stdio; void main() { int[string] helloworld = [ "Hello":0, "World