[Issue 22519] [dip1000] cannot take address of `ref return`

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 25 20:47:16 UTC 2021


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

--- Comment #3 from Dennis <dkorpel at live.nl> ---
(In reply to Stanislav Blinov from comment #2)
> How does this interact with -preview=rvaluerefparam ?

I thought rvaluerefparam was syntactic sugar for creating a local variable just
before the function call and passing that to the function parameter, so it
should work just fine.

I also agree that it should be the concern of the rvaluerefparam
implementation, especially since it's not in the language yet and the DIP for
it hasn't even reached draft review.

--


More information about the Digitalmars-d-bugs mailing list