From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b0ed9912e5828c24 X-Google-Attributes: gid103376,public From: jsa@organon.com (Jon S Anthony) Subject: Re: Scope of identifiers Date: 1996/04/18 Message-ID: #1/1 X-Deja-AN: 148223224 sender: news@organon.com (news) references: <3174F2AF.1C4@banana.demon.co.uk> organization: Organon Motives, Inc. newsgroups: comp.lang.ada Date: 1996-04-18T00:00:00+00:00 List-Id: In article <3174F2AF.1C4@banana.demon.co.uk> "Kevin F. Quinn" writes: > Is there a way (I've looked and can't find one) of informing an Ada compiler that > a prefix is a package? The following (contrived) code example illustrates: > > package Pong is > procedure Neutralise; > end Pong; > > with Pong; > procedure OdourControl is package Pong_Pkg renames Pong; <---- > type Smells is (Pong, Whiff); > Smell : Smells; > begin > Smell := Pong; > Pong_Pkg.Neutralise; <---- > end OdourControl; Rename the thing before you occlude it with the new definition so you can use it later.. > As an aside, are there any situations where an enumeration literal > makes any sense at all as an lvalue? I can't think of any... Neither can I... /Jon -- Jon Anthony Organon Motives, Inc. 1 Williston Road, Suite 4 Belmont, MA 02178 617.484.3383 jsa@organon.com