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-Thread: a07f3367d7,19b8909eebb73a8e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!h2g2000yqg.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Re: Question on Controlled types Date: Thu, 4 Jun 2009 05:32:59 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2f907a62-5ce3-41bc-816b-9efdaf8f2982@h2g2000yqg.googlegroups.com> References: <4a211b98$0$2862$ba620e4c@news.skynet.be> <1m6a6s5xq3hrf.1i7zbi65wq3cd$.dlg@40tude.net> NNTP-Posting-Host: 77.198.58.250 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1244118780 9432 127.0.0.1 (4 Jun 2009 12:33:00 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 4 Jun 2009 12:33:00 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h2g2000yqg.googlegroups.com; posting-host=77.198.58.250; 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: g2news2.google.com comp.lang.ada:6235 Date: 2009-06-04T05:32:59-07:00 List-Id: On 30 mai, 15:27, "Dmitry A. Kazakov" wrote: > The formula is I + A = F, where I is the number of calls to Initialize, A > is the number of calls to Adjust and F is the number of calls to Finalize. > > Note that the compiler has right to optimize some pairs Adjust/Finalize > away or add new ones. So this means that if there was a second assignation of Delay1, Finalize would be invoked before the copy and the Adjust which will follow the copy ? With one single assignation : 1) Delay1 assigned 2) Adjust invoked 3) Finalize invoked With two assignations: 1) Delay1 assigned 2) Adjust invoked 3) Finalize invoked before copy 4) Delay1 assigned 5) Adjust invoked after copy 6) Finalize invoked Is that right ?