On Tue, 09 Dec 2014 17:18:44 +0000
Ruslan Mullakhmetov via Digitalmars-d-learn
<digitalmars-d-learn@puremagic.com> wrote:

> thanks, I got it: either C++ or D dtors are minefield =)
and in D this is filed *made* of mines. ;-)

> but i still have no clue how to overcome GC =(
why do you want to fight with GC? most of the time GC is your friend.

are you trying to have predictable finalization? you don't have to
fight with GC in this case too, there are alot of other methods.
wrapper structs, `scoped!`, `RefCounted` and so on. you can have weak
references too (this is a hack, but it should work until we got
compacting (or precise?) GC ;-).

Attachment: signature.asc
Description: PGP signature

Reply via email to