From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,8acd4291c317f897 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,8acd4291c317f897 X-Google-Attributes: gid103376,public From: herwin@gmu.edu (Harry Erwin) Subject: Re: Safety of the Booch Ada 95 Components Date: 1999/12/10 Message-ID: <1e2lkwy.2r562h8s1ef4N%herwin@gmu.edu>#1/1 X-Deja-AN: 559071105 References: <1e2lds4.7trgj21rgj9i0N%herwin@gmu.edu> <38512921_3@news1.prserv.net> Organization: HDE Associates X-Server-Date: 10 Dec 1999 17:52:25 GMT User-Agent: MacSOUP/2.4.1 Newsgroups: comp.lang.ada,comp.lang.c++ Date: 1999-12-10T17:52:25+00:00 List-Id: Hyman Rosen wrote: > "Matthew Heaney" 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,