On Friday, 6 June 2014 at 00:34:19 UTC, Jonathan M Davis via Digitalmars-d wrote:
And like with them, it's impossible to use ref for this, because you can't use
ref with variadic template arguments.

Wait what?

void foo(T...)(ref T args)
{
        args[0] = 42;
}

void main()
{
        int x;
        foo(x);
        assert(x == 42);
}

Reply via email to