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,f3405cf75879a8dc X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: basic questions on using Ada arrays Date: Tue, 26 Oct 2010 04:20:35 +0200 Organization: Ada @ Home Message-ID: References: <871v838f5x.fsf@hugsarin.sparre-andersen.dk> <871v80g2s7.fsf@hugsarin.sparre-andersen.dk> NNTP-Posting-Host: o1huFJB2ANcHlWoNFASSiA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.63 (Win32) Xref: g2news1.google.com comp.lang.ada:14773 Date: 2010-10-26T04:20:35+02:00 List-Id: Le Sat, 09 Oct 2010 08:35:37 +0200, Randy Brukardt = a =C3=A9crit: > Using the extended return does simplify the code and possibly improves= = > the > performance as well (by eliminating a copy of the array). Already discussed last year. This may be an optimization hint for some = compilers, as other compilers may apply the same optimization even in th= e = lack of this extended return statement (it is related to avoiding copy, = = but this semantic formally apply to limited type only). This is compiler= = specific, unless Ada 2012 changed this to make it the standard semantic.= -- = Si les chats miaulent et font autant de vocalises bizarres, c=E2=80=99es= t pas pour = les chiens.