https://issues.dlang.org/show_bug.cgi?id=8008

--- Comment #11 from [email protected] ---
(In reply to bearophile_hugs from comment #10)
> (In reply to rswhite4 from comment #9)
> 
> > auto ref U[N] s(U, alias N)(auto ref U[N] arr) pure nothrow @safe @property
> > @nogc 
> >     if (__traits(compiles, { size_t i = N; }))
> 
> Simpler:
> 
> auto ref U[N] s(U, size_t N)(auto ref U[N] arr)
> pure nothrow @safe @property @nogc {
>     return arr;
> }

Of Course! Sometimes I think way too complicated.

--

Reply via email to