comp.lang.ada
 help / color / mirror / Atom feed
* Reference counting access type
@ 2012-02-16 17:03 AdaMagica
  2012-02-17  0:00 ` Randy Brukardt
  0 siblings, 1 reply; 4+ messages in thread
From: AdaMagica @ 2012-02-16 17:03 UTC (permalink / 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).



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-06  1:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-16 17:03 Reference counting access type AdaMagica
2012-02-17  0:00 ` Randy Brukardt
2012-02-23 17:33   ` AdaMagica
2012-03-06  1:52     ` Randy Brukardt

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