[Issue 18613] Documentation: recommended construction/destruction patterns for manual memory management
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 15 06:17:18 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18613
greenify <greeenify at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |greeenify at gmail.com
--- Comment #1 from greenify <greeenify at gmail.com> ---
Thanks a lot for opening the request on his behalf.
(We might modernize Bugzilla, so stay tuned)
Does your colleague know about the GC
series?https://dlang.org/blog/the-gc-series
Also did your colleague find https://dlang.org/articles/cpptod.html?
Maybe this page could then be expanded.
> Current solution, make a function myDelete that calls dtor and free by hand.
The preferred way is to use make and dispose from std.experimental.allocator -
they are the D analogies to malloc and free though a lot smarter (and dispose
calls the destructor).
--
More information about the Digitalmars-d-bugs
mailing list