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,a9bab26b6fe54a36 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!195.71.90.67.MISMATCH!news.unit0.net!noris.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 10 May 2011 14:18:28 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Pondering what rationale behind record type References: <90148303-4dc4-4c05-882f-88dd69a95494@z13g2000prk.googlegroups.com> <92quueFnsfU1@mid.individual.net> <4dc864b9$0$6890$9b4e6d93@newsspool2.arcor-online.net> <4dc90f7a$0$7659$9b4e6d93@newsspool1.arcor-online.net> <11dlfbvj00hru$.7zkw6im0a7gj$.dlg@40tude.net> In-Reply-To: <11dlfbvj00hru$.7zkw6im0a7gj$.dlg@40tude.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4dc92d14$0$6776$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 10 May 2011 14:18:29 CEST NNTP-Posting-Host: 08ce3612.newsspool3.arcor-online.net X-Trace: DXC=e6XadD;lZ1H=8m7nZkdN^@McF=Q^Z^V3H4Fo<]lROoRA8kF2Nnc\616M64>JLh>_cHTX3jMdF:I=D;PcPM X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:19215 Date: 2011-05-10T14:18:29+02:00 List-Id: On 10.05.11 14:08, Dmitry A. Kazakov wrote: >> Anything wrong with (i.e. makes you shudder) >> >> Label_A: loop >> ... >> end loop Label_A; >> >> ? > > loop A do > ... > end A; Consequently, if ... then A do ... else ... end A; I guess? >> type Get_Token is function (File : File_Type) return >> ((Matched : Boolean; Length : Positive) record >> case Matched is >> when True => Token : String (1..Length); >> when False => null; >> end case; >> end record) >> end Get_Token; > > No, Get_Token would be a function-type. Yes. It was suggested that the meat part of type declarations should end in "end [X]", not "end keyword", so that > E.g. type Func is function (X : Float) return Float; end Func;