🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #3077

Re: Exception-safe STL (was: STL still in standard)

#3077
From: Jim McElroy
Date: Tue, 23 Jan 1996 09:52
24 lines
1767 bytes
In <4du1v6$h74@jupiter.SJSU.EDU>, horstman@jupiter.SJSU.EDU
(Cay S. Horstmann) writes:

>I am not sure exceptions are the way to go--the great value of a
>standard is that it is, well, standard. STL may not be the greatest
>library on the planet, but it is certainly good enough, and it is
>standard. I don't like the idea of tinkering with the interface by
>adding exceptions.

OK, but what about guarantees on the behaviour of a container when, 
say, the constructor of a contained object throws an exception?  Can
anything then be said about the state of the container?  Can the 
container itself (with, perhaps, other contained elements) be restored
to service?  Can it even be cleaned up, or will unrecoverable memory
or other resources be left behind?

I think this is a hard problem.
----
Jim McElroy
Bellevue, Washington
---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <4e21kf$3ev0@news-s01.ny.us.ibm.net>
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back
References: <4dd7on$djk@rc1.vub.ac.be> <4dgrb4$a2e@engnews1.Eng.Sun.COM> <9601171106.AA12639@lts.sel.alcatel.de> <4du1v6$h74@jupiter.SJSU.EDU>

Show Full Headers
Complete Article Headers
From: jimmc@ibm.net (Jim McElroy)
Message-ID: <4e21kf$3ev0@news-s01.ny.us.ibm.net>
X-Original-Date: 23 Jan 1996 07:10:07 GMT
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back
Date: 23 Jan 96 09:52:42 GMT
Approved: fjh@cs.mu.oz.au
Organization: -
Newsgroups: comp.std.c++
Subject: Re: Exception-safe STL (was: STL still in standard)
References: <4dd7on$djk@rc1.vub.ac.be> <4dgrb4$a2e@engnews1.Eng.Sun.COM> <9601171106.AA12639@lts.sel.alcatel.de> <4du1v6$h74@jupiter.SJSU.EDU>
Reply-To: jimmc@ibm.net (Jim McElroy)
X-Newsreader: IBM NewsReader/2 v1.03
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBFAgUBMQSwDuEDnX0m9pzZAQF4NwGAmSo6E1pL9ALdvhon3etyuurZkx8fRzsl
 8HU+KrjZcnmZ8Rg+E9O2uaB1WbMQOMQK
 =EPeB