comp.lang.ada
 help / color / mirror / Atom feed
* ANNOUNCE: smart pointers pattern posted to ACM archives
@ 1999-03-01  0:00 Matthew Heaney
  1999-03-01  0:00 ` dennison
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Heaney @ 1999-03-01  0:00 UTC (permalink / 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.




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

* Re: ANNOUNCE: smart pointers pattern posted to ACM archives
  1999-03-01  0:00 ANNOUNCE: smart pointers pattern posted to ACM archives Matthew Heaney
@ 1999-03-01  0:00 ` dennison
  0 siblings, 0 replies; 2+ messages in thread
From: dennison @ 1999-03-01  0:00 UTC (permalink / raw)


In article <m3d82ucbnl.fsf@mheaney.ni.net>,
  Matthew Heaney <matthew_heaney@acm.org> wrote:
> 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>

I found it with the following URL. But since it's CGI, I don't know if its
good forever, or just the next 10 minutes.

http://www.acm.org/archives/wa.cgi?A2=ind9902&L=patterns&P=R2375

T.E.D.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




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

end of thread, other threads:[~1999-03-01  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-01  0:00 ANNOUNCE: smart pointers pattern posted to ACM archives Matthew Heaney
1999-03-01  0:00 ` dennison

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