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,eca91508b02e7e97 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: comp.lang.ada Subject: Re: Amount of copying on returned constant objects References: <5dfsfnF1qav8bU1@mid.individual.net> <46730bf5$0$23134$9b4e6d93@newsspool1.arcor-online.net> <5dntd6F35jc57U1@mid.individual.net> <4676C27D.2050608@obry.net> <5dpp8pF35116bU1@mid.individual.net> <4678c796$0$23135$9b4e6d93@newsspool1.arcor-online.net> From: Markus E Leypold Organization: N/A Date: Wed, 20 Jun 2007 15:00:13 +0200 Message-ID: User-Agent: Some cool user agent (SCUG) Cancel-Lock: sha1:Jp9pf9C/wZCurEYm2Z+HRxgObhA= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 88.72.238.218 X-Trace: news.arcor-ip.de 1182343824 88.72.238.218 (20 Jun 2007 14:50:24 +0200) X-Complaints-To: abuse@arcor-ip.de Path: g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder5.cambrium.nl!feed.tweaknews.nl!217.73.144.44.MISMATCH!ecngs!feeder.ecngs.de!news.germany.com!news.unit0.net!newsfeed.arcor-ip.de!news.arcor-ip.de!not-for-mail Xref: g2news1.google.com comp.lang.ada:16266 Date: 2007-06-20T15:00:13+02:00 List-Id: > Markus E Leypold wrote: >>> >> I wonder wether container implementations couldn't use a similar >> trick: Instead of dereferencing a "do_with" generic would take an >> operation as a parameter to which in turn the elements are passed >> (control passes to do_with, do_with dereferences and passes elements >> to operation). > > Query_element and Update_Element take a procedure parameter > for this very reason, IIUC. Yes, thanks. Regards -- Markus