comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: type declaration problem(beginner)
Date: 1997/03/02
Date: 1997-03-02T00:00:00+00:00	[thread overview]
Message-ID: <dewar.857344692@merv> (raw)
In-Reply-To: 19970302214000.QAA14807@ladder02.news.aol.com


John Herro said

<<The second example is written the way it is because it's always a good idea to q
ualify the aggregate when "others" follows named notation.  This was more import
ant in Ada 83 than it is in Ada 95, but it's still a good idea.  The "Set_Type'"
 before the "(" is called qualifying the aggregate.
>>

No, that is superstition, there is no point in putting in unnecessary
qualifications, and this one is unnecessary. It may be a good idea if
you do not understand the rules, but in practice in Ada 95, you can
indeed avoid junk qualifications in cases like this.

It is true that in Ada 83, the qualification was needed in some cases where
it appears unnecessary, so many people adopt the style of using it all the
time in Ada 83, but this is a bit of Ada 83 superstition that need not be
carried forward to Ada 95. Write the qualification only if it helps
readability (in the quoted case, it clearly does NOT do so)





  reply	other threads:[~1997-03-02  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-26  0:00 type declaration problem(beginner) dawkins
1997-03-02  0:00 ` johnherro
1997-03-02  0:00   ` Robert Dewar [this message]
1997-03-03  0:00 ` johnherro
1997-03-05  0:00 ` David Wheeler
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox