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: a07f3367d7,612ea65294f56d25 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!news-xxxfer.readnews.com!panix!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Syntax of extended return statement Date: Tue, 15 Mar 2011 22:23:06 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1300242186 13746 192.74.137.71 (16 Mar 2011 02:23:06 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 16 Mar 2011 02:23:06 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:zWmFDb9beKzns0pVrUPfNe7TC+E= Xref: g2news2.google.com comp.lang.ada:19201 Date: 2011-03-15T22:23:06-04:00 List-Id: Bill Findlay writes: > My problem is that I see no justification for that in the Ada 2005 RM, which > gives: > > extended_return_statement ::= > > return defining_identifier:[aliased] return_subtype_indication[:=expression] > [do > handled_sequence_of_statements > end return]; ... > Can anyone enlighten me? "constant" is allowed by AI05-0015. If you look at the latest version of the RM, you will see that syntax allowed. - Bob