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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2153d570c2f03e29 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.82.164 with SMTP id j4mr1746826pay.15.1355664869667; Sun, 16 Dec 2012 05:34:29 -0800 (PST) Received: by 10.50.45.226 with SMTP id q2mr3900957igm.0.1355664869410; Sun, 16 Dec 2012 05:34:29 -0800 (PST) Path: 6ni44385pbd.1!nntp.google.com!kt20no6934983pbb.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 16 Dec 2012 05:34:29 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=114.145.11.171; posting-account=Mi71UQoAAACnFhXo1NVxPlurinchtkIj NNTP-Posting-Host: 114.145.11.171 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Question about library-level functions From: ytomino Injection-Date: Sun, 16 Dec 2012 13:34:29 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-12-16T05:34:29-08:00 List-Id: On Sunday, December 16, 2012 6:43:41 PM UTC+9, Simon Wright wrote: > I think that what's happening is that a (limited) temporary lifetime.T > object is created (on the heap, or perhaps the secondary stack). Its > access is taken for the return value, and then (because we're leaving > the scope) it gets finalized. I think so too. For that reason, I imagine that the master of the top-level function exists inside of oneself. > Whether this is what's meant to happen I don't know! I want to throw my spoon!