Advice wanted on garbage collection of sockets for c++ programmer using D
Moritz Maxeiner via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jun 28 05:46:18 PDT 2017
On Wednesday, 28 June 2017 at 12:28:28 UTC, Guillaume Piolat
wrote:
> On Wednesday, 28 June 2017 at 11:21:07 UTC, Moritz Maxeiner
> wrote:
>> On Wednesday, 28 June 2017 at 09:16:22 UTC, Guillaume Piolat
>> wrote:
>>> So far everyone is ignoring my example when A needs B to be
>>> destroyed. This happens as soon as you use DerelictUtil for
>>> example.
>>
>> I thought I had (implicitly): B needs to be `@disable
>> finalize`.
>
> So in the current language, doesn't exist?
I thought that was the premise of the discussion?
That the GC *currently* invokes the "destructors" as finalizers
and that *currently* the only way to avoid that is calling
`destroy` on them manually beforehand (since destructors won't be
called twice on a single object).
More information about the Digitalmars-d-learn
mailing list