comp.lang.ada
 help / color / mirror / Atom feed
* Re:  Expanded names and 4.1.3:18
@ 1991-02-12  2:15 stt
  0 siblings, 0 replies; only message in thread
From: stt @ 1991-02-12  2:15 UTC (permalink / raw)



Re: Expanded names and 4.1.3:18

In response to a question by Scott Burson (Gyro@Reasoning.COM),
he wonders why subprograms and accept statements are singled out
by paragraphs 18 and 19 of section 4.1.3 dealing with expanded names.

The reason subprograms and accept statements are special is because
their identifier/operator symbol can overload, rather than hide
an outer occurence.  For the other constructs, the name
of the construct always hides an outer declaration of the same
identifer.

The combination of paragraph 18 and 19 implies that
if a prefix of a selected component can be interpreted
as the name of an enclosing subprogram/accept statement,
then it will be (no parameterless call will be considered),
and it is illegal if the name is overloaded by other
enclosing subprograms/accept statements.

As an editorial comment -- this is one of those rules
which was supposed to simplify overload resolution, but
in retrospect, may not have been worth the extra special case.

S. Tucker Taft
Intermetrics, Inc.
Cambridge, MA  02138

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1991-02-12  2:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1991-02-12  2:15 Expanded names and 4.1.3:18 stt

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