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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2078ce7aac45af5b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,CP1252 Received: by 10.66.83.5 with SMTP id m5mr133481pay.33.1352982113295; Thu, 15 Nov 2012 04:21:53 -0800 (PST) Path: 6ni82927pbd.1!nntp.google.com!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Thu, 15 Nov 2012 13:21:52 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada202X : Adding functors References: <0114d327-9f9f-4ad2-9281-56331d11a90c@googlegroups.com> In-Reply-To: Message-ID: <50a4de60$0$9508$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 15 Nov 2012 13:21:52 CET NNTP-Posting-Host: 57b89656.newsspool1.arcor-online.net X-Trace: DXC=0Ni3FYYlcY6RLigj];iP=8ic==]BZ:af>4Fo<]lROoR1nkgeX?EC@@0JkkRih[6ejV8aBLPQ78TOe=V>BDc@b2?3; X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Date: 2012-11-15T13:21:52+01:00 List-Id: On 15.11.12 08:12, Martin wrote: > Yup...I think I listed lambdas in another post...possibly even my 'No 1'! No chance of me using them in my C++ work, our compilers aren't up to C++11. > Does the capturing mechanism allow returning lambda-expressions outliving their declarative region, i.e. can they be returned? I noticed this when boldly trying to make sense of the draft standard: // 22 [Note: If an entity is implicitly or explicitly captured by // reference, invoking the function call operator of the // corresponding lambda-Expression after the lifetime of the entity // has ended is likely to result in undefined behavior. �endnote]