[Issue 14421] Variadic args array force on heap

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Apr 11 09:09:22 PDT 2015


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

--- Comment #2 from John Colvin <john.loughran.colvin at gmail.com> ---
What I want is a way of writing

char[] foo(char[] args ...)
{
    return args.dup;
}

with a guarantee that only one allocation is made.

--


More information about the Digitalmars-d-bugs mailing list