[Issue 22790] ref-return-scope is always ref-return, scope, unless return-scope appear in that order

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 19 00:51:28 UTC 2022


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

--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
For example:

    ref int foo(ref return scope int* p)

means "ref" and "return scope".

    ref int foo(ref scope return int* p)

means "return ref" and "scope".

--


More information about the Digitalmars-d-bugs mailing list