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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1888e8caa20a2f2d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!proxad.net!proxad.net!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Controlled types and exception safety Date: Tue, 06 Dec 2005 13:50:47 +0100 Organization: Adalog Message-ID: <7f14nd.ecm.ln@hunter.axlog.fr> References: <439578e1$0$8168$6d3edbfc@news.sover.net> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1133874094 2744 195.25.228.57 (6 Dec 2005 13:01:34 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Tue, 6 Dec 2005 13:01:34 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: fr, en In-Reply-To: <439578e1$0$8168$6d3edbfc@news.sover.net> Xref: g2news1.google.com comp.lang.ada:6748 Date: 2005-12-06T13:50:47+01:00 List-Id: Peter C. Chapin a �crit : > Jeffrey R. Carter wrote: > I don't understand the point of the intermediate object. Since an adjust > is done when assigning to the target object, what advantage does > introducing the intermediate object have over just assigning to the > target from the original source? The description above makes it sound > like the system makes a pointless copy of the source object. > Think about reference counting for example. Without the intermediate object, the counter might drop to 0 before assignment, therefore (incorrectly) freeing the object -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr