comp.lang.ada
 help / color / mirror / Atom feed
From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Reference counting access type
Date: Thu, 16 Feb 2012 09:03:36 -0800 (PST)
Date: 2012-02-16T09:03:36-08:00	[thread overview]
Message-ID: <27f8f1ab-c849-4a0b-ac3b-f279103babfc@z9g2000vbv.googlegroups.com> (raw)

For a safe reference counting access type (any user deallocation
prohibited, so the safety cannot be compromized - there are never
dangling pointers) see
http://www.christ-usch-grein.homepage.t-online.de/Ada/Smart_Pointers.html

This follows strictly the example at AdaCore gem #107
http://www.adacore.com/2011/06/06/gem-107-preventing-deallocation-for-reference-counted-types/

There is a preview to the Ada 2012 implicit dereference aspect
included (GNAT GPL 2011 does not yet fully support this).



             reply	other threads:[~2012-02-16 17:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-16 17:03 AdaMagica [this message]
2012-02-17  0:00 ` Reference counting access type Randy Brukardt
2012-02-23 17:33   ` AdaMagica
2012-03-06  1:52     ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox