[Issue 22023] adding `return` to escaped argument of a variadic defeats @safe

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 8 17:21:26 UTC 2021


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

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkorpel at live.nl

--- Comment #1 from Dennis <dkorpel at live.nl> ---
Possible solutions:
- disallow `return` on variadic array arguments
- strip `return` on variadic array arguments, making it a no-op
- allocate the array with the GC on the call site when `return` is present

Not sure which is best, I'm leaning towards the first.

--


More information about the Digitalmars-d-bugs mailing list