GC for noobs
Szymon Gatner
noemail at gmail.com
Thu Feb 27 02:43:00 PST 2014
On Thursday, 27 February 2014 at 10:40:15 UTC, Tobias Pankrath
wrote:
> Szymon Gatner wrote:
>>
>> Parent-child in the sense of object graph. I did read the spec
>> when I started to notice crashes. I must say that it really
>> terrified me to my very bones. I always though that
>> higher-level memory management environments would give more
>> and not less guarantees.
>>
>> Anyway, I really need to learn how to design the code for CG
>> and undefined d-tor calls. Any pointers would be welcome.
>
> I think that will depend on your use case. Why do you need to
> refer to child objects in your destructor?
I don't need to refer to children, I just want them to do their
cleanup first as they should.
This is basic resource-management stuff, surely there has to be
generic advice out there?
More information about the Digitalmars-d-learn
mailing list