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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!r33g2000yqb.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Re: Initialization and Finalization of limited object "returned" by a function Date: Thu, 11 Feb 2010 20:40:38 -0800 (PST) Organization: http://groups.google.com Message-ID: <23ebb673-4d3a-4031-877d-e9a728e4c120@r33g2000yqb.googlegroups.com> References: NNTP-Posting-Host: 86.66.190.112 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1265949638 23484 127.0.0.1 (12 Feb 2010 04:40:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 12 Feb 2010 04:40:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r33g2000yqb.googlegroups.com; posting-host=86.66.190.112; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:9154 Date: 2010-02-11T20:40:38-08:00 List-Id: On 11 f=E9v, 16:16, Robert A Duff wrote: > I'm not going to read your code carefully, but that doesn't > seem right. =A0If you have: > > =A0 =A0 X : T :=3D F(...); > > the result of F is "built in place" in X, and should be finalized > when the procedure containing X is left. the result of F is "built in place" in X : Yes, that's what I was expecting too ! And should be finalized when the procedure containing X is left : the same ! So you confirmed my expectations. Try the Test program, and you will see this things are not going this way with it. Things works nice with G.