[Issue 19097] Extend Return Scope Semantics
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 21 14:53:40 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19097
Atila Neves <atila.neves at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |atila.neves at gmail.com
--- Comment #7 from Atila Neves <atila.neves at gmail.com> ---
@Mike It applies to constructors in the same way it applies to `void` functions
whose first argument is `ref` or `out`. The hidden first parameter to the
constructor is a `ref` parameter: `this`.
I think a better way to describe this issue is that first parameters that are
`ref` or `out` (including `this` for constructors) should be considered and
treated the same as return values for other functions.
--
More information about the Digitalmars-d-bugs
mailing list