[Issue 6186] Struct destructor is not called on out parameter
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Nov 16 14:36:49 PST 2014
https://issues.dlang.org/show_bug.cgi?id=6186
--- Comment #7 from Walter Bright <bugzilla at 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.
--
More information about the Digitalmars-d-bugs
mailing list