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
Condense Mail Headers

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

Print Reply
Mime-Version: 1.0
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
From: "Norman H. Cohen" <[log in to unmask]>
Date: Tue, 6 May 1997 13:49:35 -0400
Content-type: text/plain; charset=us-ascii
Reply-To: "Norman H. Cohen" <[log in to unmask]>
Parts/Attachments: 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