From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Re: Reference counting and idempotent finalize
Date: Wed, 11 Sep 2013 04:21:21 -0700 (PDT)
Date: 2013-09-11T04:21:21-07:00 [thread overview]
Message-ID: <e41677c0-33df-417d-9ef8-f348086c6c07@googlegroups.com> (raw)
In-Reply-To: <slrnl30ie3.1lme.lithiumcat@sigil.instinctive.eu>
With the little you show, this looks OK.
Be careful about the lifetime of dereferences.
Compare Ada Gems
http://www.adacore.com/adaanswers/gems/gem-97-reference-counting-in-ada-part-1
and
http://www.adacore.com/adaanswers/gems/gem-107-preventing-deallocation-for-reference-counted-types/
Shameless plug: See my implementation
http://www.christ-usch-grein.homepage.t-online.de/Ada/Smart_Pointers.html
next prev parent reply other threads:[~2013-09-11 11:21 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-11 10:45 Reference counting and idempotent finalize Natasha Kerensikova
2013-09-11 11:21 ` AdaMagica [this message]
2013-09-11 12:12 ` Dmitry A. Kazakov
2013-09-12 5:34 ` Natasha Kerensikova
2013-09-12 7:33 ` Dmitry A. Kazakov
2013-09-11 12:16 ` Dmitry A. Kazakov
2013-09-12 4:53 ` Natasha Kerensikova
2013-09-11 12:21 ` Jeffrey R. Carter
2013-09-11 20:03 ` Simon Wright
2013-09-12 4:46 ` Natasha Kerensikova
2013-09-12 5:05 ` Natasha Kerensikova
2013-09-12 7:54 ` Dmitry A. Kazakov
2013-09-12 17:03 ` Jeffrey R. Carter
2013-09-11 13:50 ` Pascal Obry
2013-09-12 4:56 ` Natasha Kerensikova
2013-09-12 14:33 ` Simon Wright
2013-09-12 15:40 ` Pascal Obry
2013-09-12 10:23 ` sbelmont700
2013-09-30 6:25 ` Natasha Kerensikova
2013-09-30 10:02 ` AdaMagica
2013-10-01 6:22 ` Natasha Kerensikova
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox