comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthew_heaney@acm.org>
Subject: ANNOUNCE: smart pointers pattern posted to ACM archives
Date: 1999/03/01
Date: 1999-03-01T00:00:00+00:00	[thread overview]
Message-ID: <m3d82ucbnl.fsf@mheaney.ni.net> (raw)

An article about smart pointers for Ada95 has been posted to the
patterns archive at the ACM.  A description appears below.

<http://www.acm.org/archives/patterns.html>

Last year, I posted an article about the Interpreter pattern, and
implemented the example using (dumb) pointers.  The client had to
manually free the pointers when he was done with them, which often
required some tortuous logic in order to handle storage errors and
prevent memory leaks.

The example has been completely re-written using smart pointers, which
has considerably simplified the implementation, because you don't have
to do any thinking about memory reclamation.  The smart pointers take
care of that for you.

To subscribe to the patterns list, send the message (body)

subscribe patterns <your full name>

to the ACM mail-list server.

<mailto:listserv@acm.org>

You can also subscribe from the web page.


Smart Pointers

In this article I discuss how to implement "smart pointers," which keep
track of how many references there are to an object, and automatically
return the object to storage when there are no more references.




             reply	other threads:[~1999-03-01  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-01  0:00 Matthew Heaney [this message]
1999-03-01  0:00 ` ANNOUNCE: smart pointers pattern posted to ACM archives dennison
replies disabled

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