[Issue 14421] Variadic args array force on heap

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jan 22 07:54:15 PST 2016


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

Mathias Lang <mathias.lang at sociomantic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |mathias.lang at sociomantic.co
                   |                            |m
         Resolution|---                         |WORKSFORME

--- Comment #6 from Mathias Lang <mathias.lang at sociomantic.com> ---
@John:
Nowadays, trying to just return a variadic argument gives the following error
message:
`variadic.d(3): Error: escaping reference to variadic parameter a`

It doesn't allocate any memory according to both `@nogc` and gdb.
So the solution yebblies mention is the only possible approach nowaday.

--


More information about the Digitalmars-d-bugs mailing list