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

Sebastiaan Koppe <m...@skoppe.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |m...@skoppe.eu

--- Comment #2 from Sebastiaan Koppe <m...@skoppe.eu> ---
As have I commented on the newsgroup
https://forum.dlang.org/post/zckdpsukzafedikiu...@forum.dlang.org

"
It doesn't copy. It just destructs the same object twice... Ouch.

Change the destructor to ~this() { printf("~this(%d)\n", n); n = 12; } and
you'll see.
"

--

Reply via email to