Thread overview
[Issue 14466] destructive move
Sep 02, 2015
Martin Nowak
Oct 09, 2016
Martin Nowak
Dec 17, 2022
Iain Buclaw
June 09, 2015
https://issues.dlang.org/show_bug.cgi?id=14466

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |D2

--
September 02, 2015
https://issues.dlang.org/show_bug.cgi?id=14466

--- Comment #1 from Martin Nowak <code@dawg.eu> ---
This should only be allowed on "value" declarations to avoid complications like destructive move via ref parameter in a function call or moving of array elements.

--
October 09, 2016
https://issues.dlang.org/show_bug.cgi?id=14466

--- Comment #2 from Martin Nowak <code@dawg.eu> ---
DMD internally uses a storage class flag (STCnodtor) for a similar purpose.
So an @unsafe __nodtor(var) intrinsic to instruct the compiler to not destruct
a variable could hopefully just set this flag.

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--