Thread overview
[Issue 6186] Struct destructor is not called on out parameter
Nov 16, 2014
Walter Bright
Dec 17, 2022
Iain Buclaw
November 16, 2014
https://issues.dlang.org/show_bug.cgi?id=6186

--- Comment #7 from Walter Bright <bugzilla@digitalmars.com> ---
I'm beginning to think that there's no good way to make this work. In essence, make it an error to use 'out' for objects with a destructor. Use 'ref' for such objects, which has well-defined semantics.

--
November 17, 2014
https://issues.dlang.org/show_bug.cgi?id=6186

--- Comment #8 from hsteoh@quickfur.ath.cx ---
What are the scenarios that would make this hard to fix according to the original proposal?

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=6186

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

--