No, 2 allocations instead of N.
Oh, I misunderstood you. You mean two blocks total, for scanned and non-scanned data. This could indeed work for cases when more than two arrays are needed. Still, it's one extra allocation.
Stanislav Blinov via Digitalmars-d Tue, 06 Jun 2017 03:41:22 -0700
No, 2 allocations instead of N.
Oh, I misunderstood you. You mean two blocks total, for scanned and non-scanned data. This could indeed work for cases when more than two arrays are needed. Still, it's one extra allocation.