On Wednesday, 12 July 2017 at 05:45:13 UTC, Miguel L wrote:
Also what is it possible in D to write a function that accepts an static array of any size?
void foo(size_t N)(ref int[N] arr) { ... } int[10] arr; foo(arr);
Jack Applegame via Digitalmars-d-learn Wed, 12 Jul 2017 11:51:06 -0700
On Wednesday, 12 July 2017 at 05:45:13 UTC, Miguel L wrote:
Also what is it possible in D to write a function that accepts an static array of any size?
void foo(size_t N)(ref int[N] arr) { ... } int[10] arr; foo(arr);