[Issue 22916] [dip1000] copy of ref return still treated as scope variable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 29 08:36:05 UTC 2022


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

--- Comment #10 from Dennis <dkorpel at live.nl> ---
(In reply to Walter Bright from comment #8)
> Note that `return scope` is *always* interpreted as returnScope.
> 
> Also, the behavior is *always* determined by the function signature, not
> whatever the return expression is.

This issue is not about whether my `Arr.index` function is ReturnRef-Scope or
Ref-ReturnScope, it's always been clear from the start it's Ref-ReturnScope.

--


More information about the Digitalmars-d-bugs mailing list