From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Pondering what rationale behind record type
Date: Mon, 09 May 2011 22:51:42 +0300
Date: 2011-05-09T22:51:42+03:00 [thread overview]
Message-ID: <92quueFnsfU1@mid.individual.net> (raw)
In-Reply-To: <90148303-4dc4-4c05-882f-88dd69a95494@z13g2000prk.googlegroups.com>
Adam Beneschan wrote:
> On May 9, 10:47 am, Anh Vo <anhvofrc...@gmail.com> 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
. @ .
next prev parent reply other threads:[~2011-05-09 19:51 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-09 17:47 Pondering what rationale behind record type Anh Vo
2011-05-09 18:59 ` Adam Beneschan
2011-05-09 19:51 ` Niklas Holsti [this message]
2011-05-09 20:02 ` Dmitry A. Kazakov
2011-05-09 20:12 ` Anh Vo
2011-05-09 22:03 ` Georg Bauhaus
2011-05-10 7:45 ` Dmitry A. Kazakov
2011-05-10 10:12 ` Georg Bauhaus
2011-05-10 12:08 ` Dmitry A. Kazakov
2011-05-10 12:18 ` Georg Bauhaus
2011-05-10 12:50 ` Dmitry A. Kazakov
2011-05-10 14:20 ` Martin
2011-05-11 7:32 ` Dmitry A. Kazakov
2011-05-11 2:28 ` Shark8
2011-05-11 7:32 ` Dmitry A. Kazakov
2011-05-18 22:55 ` Shark8
2011-05-19 8:12 ` Dmitry A. Kazakov
2011-05-09 20:49 ` Randy Brukardt
2011-05-19 9:50 ` J-P. Rosen
2011-05-20 6:10 ` anon
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox