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: a07f3367d7,e51f94f876618e37 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.86.100 with SMTP id o4mr4926847paz.2.1352512363891; Fri, 09 Nov 2012 17:52:43 -0800 (PST) Received: by 10.68.253.129 with SMTP id aa1mr4226498pbd.17.1352512363877; Fri, 09 Nov 2012 17:52:43 -0800 (PST) Path: 6ni68539pbd.1!nntp.google.com!kr7no40831558pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 9 Nov 2012 17:52:43 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.20.190.126; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 69.20.190.126 References: <9bbd99bd-f953-434d-b3c8-6e8a6d5c7dfd@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3f8ba99f-015f-4567-8d31-6c711beb58c4@googlegroups.com> Subject: Re: Question[s] about aliased extended return. From: Shark8 Injection-Date: Sat, 10 Nov 2012 01:52:43 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-11-09T17:52:43-08:00 List-Id: On Friday, November 9, 2012 6:08:46 PM UTC-7, Jeffrey Carter wrote: > On 11/09/2012 12:42 PM, Shark8 wrote: > > The extended return exists for build-in-place results of limited types. There's > really no reason to use it for other types. Really? I thought it was quite useful for initializing things too: Type Matrix is Array(Positive Range <>, Positive Range <>) of Float; Type Identity(Size: Positive) return Matrix is begin Return Result : Matrix(1..size, 1..size):= (others => 0.0) do For index in Matrix'Range(1) loop Result(Index, Index):= 1.0; end loop; End return; end; But I guess that's fairly related to build-in-place; the only difference being it's not limited.