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

greenify <greeen...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greeen...@gmail.com

--- Comment #1 from greenify <greeen...@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).

--

Reply via email to