[Dlang-study] [lifetime] destructor, difference between C++ and D and rationale

deadal nix deadalnix at gmail.com
Wed Oct 28 13:39:45 PDT 2015


Andrei, to quote you :
"[...]at least in v1.0 we're considering having the callER do the increment
and the callEE do the decrement. This is how D currently handles copy
construction and destruction, and it turns out it has a number of
advantages over C++ (where the caller does all the work)."

Can you explain how C++ and D destructor management differs, and what are
the rationale behind these differences ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dlang-study/attachments/20151028/05426937/attachment.html>


More information about the Dlang-study mailing list