TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
"Norman H. Cohen" <[log in to unmask]>
Tue, 6 May 1997 13:49:35 -0400
text/plain (15 lines)
Wes Groleau wrote: <<IF "the function and the local variables it declares"
were at the same level (they are not) then the compiler would have to flag
the declaration as an illegal re-declaration.>>

Interpretations of a prefix as the name of an enclosing construct always
take precedence over all other interpretations of the prefix.  See
RM95-4.1.3(4..5) or RM83-4.1.3(19) (which use different wording to say the
same thing).

-- Norman Cohen

P.S.--I agree with Wes that such a conflict never arises in a program with
well-chosen names, so this issue is not of general interest, and certainly
not of interest to Ada novices.

ATOM RSS1 RSS2