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,612ea65294f56d25 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bill Findlay Newsgroups: comp.lang.ada Subject: Re: Syntax of extended return statement Date: Wed, 16 Mar 2011 17:03:55 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: individual.net Vej8EIPk6473x6ezawWIWA255IIiMXycRXxSGABtWC+aDrAoTC Cancel-Lock: sha1:WTZE7L2htMU2o8BYc6H1J4AUwbY= User-Agent: Microsoft-Entourage/12.28.0.101117 Thread-Topic: Syntax of extended return statement Thread-Index: Acvj/CHjV4g3kvPNbUOo1t/vyRCyAA== Xref: g2news1.google.com comp.lang.ada:18246 Date: 2011-03-16T17:03:55+00:00 List-Id: On 16/03/2011 02:23, in article wccoc5bkdmd.fsf@shell01.TheWorld.com, "Robert A Duff" wrote: > 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. Aha! Out-of-date RM! Now I can sleep easy. 8-) Thanks, Bob. -- Bill Findlay with blueyonder.co.uk; use surname & forename;