how to use unknown size of array at compile time for further processing

Ilya Yaroshenko ilyayaroshenko at gmail.com
Sun Oct 1 15:13:28 UTC 2017


On Sunday, 1 October 2017 at 14:23:54 UTC, thorstein wrote:
>> [...]
>
> Sorry, I'm still really confused with the results from my 
> function:
>
> [...]

Replace
arrayT ~= rowT;
with
arrayT ~= rowT.dup;

Also, you may want to look into ndslice package [1].
[1] https://github.com/libmir/mir-algorith

Best regards,
Ilya Yaroshenko


More information about the Digitalmars-d-learn mailing list