Multidimensional AA question
    Jack Applegame via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Fri Nov 27 00:12:23 PST 2015
    
    
  
On Friday, 27 November 2015 at 04:21:41 UTC, Nicholas Wilson 
wrote:
> AA are weird in that AFAIK you need to "initialise" them before 
> you try to look suff up in them else they crash. i.e.
> int[string] foo;
> // auto e = "1" in foo; // crash AA not initialised
> foo[ "blah"] = 0;
> foo.remove("blah");
> auto e = "1" in foo; //doesn't crash
It's not true.
"Not initalzed" AA s just empty AA.
http://dpaste.dzfl.pl/82b38a2ad504
    
    
More information about the Digitalmars-d-learn
mailing list