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: 103376,8acd4291c317f897 X-Google-Attributes: gid103376,public X-Google-Thread: 109fba,8acd4291c317f897 X-Google-Attributes: gid109fba,public From: Simon Wright Subject: Re: Safety of the Booch Ada 95 Components Date: 1999/12/17 Message-ID: #1/1 X-Deja-AN: 562358009 X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 References: <1e2lds4.7trgj21rgj9i0N%herwin@gmu.edu> <38512921_3@news1.prserv.net> <3851c7b9_4@news1.prserv.net> <38558788.33C493B@mitre.org> <38576982.1CBD1984@mail.com> X-Trace: news.demon.co.uk 945535816 nnrp-08:22750 NO-IDENT pogner.demon.co.uk:158.152.70.98 Organization: At Home Newsgroups: comp.lang.ada,comp.lang.c++ X-Complaints-To: abuse@demon.net Date: 1999-12-17T00:00:00+00:00 List-Id: Mats Weber writes: > Simon Wright wrote: > > > I'm going to do a deep copy. > > > > I have an object containing a pointer to the value that has been > > assigned, so I need to make the deep copy and then put a pointer to > > the copy in the current object. > > > > If that fails, presumably because of memory exhaustion, I can [...] > (5) raise or propagate and exception. I think this is the only right > thing to do. Being tagged, controlled types are passed by reference, so > you can also make sure the target of the assignement has a null pointer. I forgot to say that I was going to do that anyway! thanks for the note ..