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: g2news2.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Pondering what rationale behind record type Date: Mon, 09 May 2011 22:51:42 +0300 Organization: Tidorum Ltd Message-ID: <92quueFnsfU1@mid.individual.net> References: <90148303-4dc4-4c05-882f-88dd69a95494@z13g2000prk.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net GZz3Gs8h9ENnDkieApeHhwsx+YyiF7hSYCk+4acf1piVJrXfTE Cancel-Lock: sha1:5oU+nOE/4Gs4HSabZomEeZhK8RI= User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100328) In-Reply-To: <90148303-4dc4-4c05-882f-88dd69a95494@z13g2000prk.googlegroups.com> Xref: g2news2.google.com comp.lang.ada:20169 Date: 2011-05-09T22:51:42+03:00 List-Id: Adam Beneschan wrote: > On May 9, 10:47 am, Anh Vo wrote: >> Some time I am wondering why record type has different syntax pattern >> than the rest with respect to type ending text. That is it ends with >> 'end record;' no matter what the identifier is. The rest of others end >> with 'end identifier'. Below are examples regarding this subject. >> >> type Data is record >> X_Coord : Integer := 0; >> Y_Coord : Integer := 0; >> -- more components >> end record; >> >> task type Event_Monitor is >> entry Start; >> entry Process (...) >> end Event_Monitor; > > Heh ... good question. I have to say I get tripped up by this a lot; > I type things like "type Some_Type is record ... end Some_Type;" > fairly frequently, and sometimes I don't catch it before the compiler > does. I make that mistake often, too. I would vote for a change in the language to allow "end Some_Type" as an alternative to "end record". -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .