Passing Elements of A Static Array as Function Parameters

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Sep 13 22:17:49 PDT 2015


If I have a static array `x` defined as

     enum N = 3;
     int[N] x;

how do I pass it's elements into a variadic function

     f(T...)(T xs) if (T.length >= 3)

?


More information about the Digitalmars-d-learn mailing list