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