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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC,WEIRD_QUOTING autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cced0e2ac94722f3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.73.229 with SMTP id o5mr8303073pbv.7.1326015814802; Sun, 08 Jan 2012 01:43:34 -0800 (PST) Path: lh20ni155745pbb.0!nntp.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!news2.arglkargh.de!feeder.erje.net!news-2.dfn.de!news.dfn.de!news.uni-weimar.de!not-for-mail From: stefan-lucks@see-the.signature Newsgroups: comp.lang.ada Subject: Re: Ada2012 : Expression functions and extended return statements Date: Sun, 8 Jan 2012 10:41:22 +0100 Organization: Bauhaus-Universitaet Weimar Message-ID: References: <26f343ea-d694-4089-b594-f32b471db3a4@m4g2000vbc.googlegroups.com> <1bjpifgqn93x.yp3mckcm2qds$.dlg@40tude.net> Reply-To: stefan-lucks@see-the.signature NNTP-Posting-Host: medsec1.medien.uni-weimar.de Mime-Version: 1.0 X-Trace: tigger.scc.uni-weimar.de 1326015814 26986 141.54.178.228 (8 Jan 2012 09:43:34 GMT) X-Complaints-To: news@tigger.scc.uni-weimar.de NNTP-Posting-Date: Sun, 8 Jan 2012 09:43:34 +0000 (UTC) X-X-Sender: lucks@medsec1.medien.uni-weimar.de In-Reply-To: <1bjpifgqn93x.yp3mckcm2qds$.dlg@40tude.net> Content-Type: TEXT/PLAIN; charset=US-ASCII Date: 2012-01-08T10:41:22+01:00 List-Id: On Sat, 7 Jan 2012, Dmitry A. Kazakov wrote: > On Sat, 7 Jan 2012 15:54:44 +0100, stefan-lucks@see-the.signature wrote: > > > function Characters(I: Integer; Filler: Character := '_') return String is > > begin > > return Result: String(1..I) := (others => Filler) do > > return; > > end return; > > end Characters; > > OT: a return statement inside another return statement is funny. > > return X : Boolean := True do -- Illegal, I hope > return False; > end return; This is a syntax error: extended_return_statement cannot return value; use ""return;"" -- ---- Stefan.Lucks (at) uni-weimar.de, University of Weimar, Germany ---- ------ I love the taste of Cryptanalysis in the morning! ------