Associative array on the heap

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon May 18 17:01:38 PDT 2015


On Tuesday, 19 May 2015 at 00:00:30 UTC, Meta wrote:
>     A b = []; //No allocation yet, b is null

Whoops, you actually can't assign the empty array literal to an 
AA. This line should be:

A b;

Which has the exact same effects.



More information about the Digitalmars-d-learn mailing list