allocate an array of AA?

bearophile bearophileHUGS at lycos.com
Sat Mar 8 12:11:11 PST 2008


sa Wrote:
> How to allocate an array of AA?
> I tried two ways (new, and setting array length), in both cases the code
> compiles, but the executable seems run into infinite loop, and never finish.

It's a bug of DMD. I think you have to use a loop with a creation followed by an append (~=) to the array.

Bye,
bearophile



More information about the Digitalmars-d mailing list