From: herwin@gmu.edu (Harry Erwin)
Subject: Re: Safety of the Booch Ada 95 Components
Date: 1999/12/10
Date: 1999-12-10T17:52:25+00:00 [thread overview]
Message-ID: <1e2lkwy.2r562h8s1ef4N%herwin@gmu.edu> (raw)
In-Reply-To: t790326901.fsf@calumny.jyacc.com
Hyman Rosen <hymie@prolifics.com> wrote:
> "Matthew Heaney" <matthew_heaney@acm.org> writes:
> > I don't understand your comment about not being "exception-safe."
> > Perhaps you could elaborate on that point.
>
> In C++, class objects are copied through a class method called the
> copy-constructor, to allow for resource control. If an exception is
> thrown during copy-construction of one of the elements, it's possible
> that the target data structure may be left in an invalid state.
And it usually takes some care to avoid that happening. Strong exception
safety goes even further, requiring commit/rollback semantics.
--
Harry Erwin, PhD, <http://mason.gmu.edu/~herwin>
next prev parent reply other threads:[~1999-12-10 0:00 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-10 0:00 Safety of the Booch Ada 95 Components Harry Erwin
1999-12-10 0:00 ` Simon Wright
1999-12-12 0:00 ` Harry Erwin
1999-12-13 0:00 ` Simon Wright
1999-12-12 0:00 ` Simon Wright
1999-12-12 0:00 ` Matthew Heaney
1999-12-10 0:00 ` Matthew Heaney
1999-12-10 0:00 ` Hyman Rosen
1999-12-10 0:00 ` Matthew Heaney
1999-12-11 0:00 ` Harry Erwin
1999-12-12 0:00 ` Robert Dewar
1999-12-12 0:00 ` Harry Erwin
1999-12-13 0:00 ` Kent Paul Dolan
1999-12-13 0:00 ` Robert I. Eachus
1999-12-13 0:00 ` Simon Wright
1999-12-13 0:00 ` Ted Dennison
1999-12-13 0:00 ` Hyman Rosen
1999-12-13 0:00 ` Robert I. Eachus
1999-12-14 0:00 ` Simon Wright
1999-12-15 0:00 ` Mats Weber
1999-12-17 0:00 ` Simon Wright
1999-12-15 0:00 ` Harry Erwin
1999-12-14 0:00 ` Matthew Heaney
1999-12-10 0:00 ` Harry Erwin [this message]
1999-12-10 0:00 ` Harry Erwin
1999-12-12 0:00 ` Simon Wright
1999-12-12 0:00 ` Harry Erwin
1999-12-13 0:00 ` Simon Wright
1999-12-13 0:00 ` Tucker Taft
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox