[Issue 17927] [scope] `scope inout` parameter value can be escaped via return

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 4 10:01:21 UTC 2020


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #14 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Steven Schveighoffer from comment #12)
> ref inout should NOT be inferred as return. inout is a pattern match
> on the mutability of the parameters, it does not necessarily imply that it
> is part of the return type.

inout is deliberately inferred as return. It's the way the language currently
works. To change it please make an enhancement request, as such should be
discussed on its own merits.

--


More information about the Digitalmars-d-bugs mailing list