comp.lang.ada
 help / color / mirror / Atom feed
From: jsa@organon.com (Jon S Anthony)
Subject: Re: Scope of identifiers
Date: 1996/04/18
Date: 1996-04-18T00:00:00+00:00	[thread overview]
Message-ID: <JSA.96Apr18135213@organon.com> (raw)
In-Reply-To: 3174F2AF.1C4@banana.demon.co.uk

In article <3174F2AF.1C4@banana.demon.co.uk> "Kevin F. Quinn" <kevq@banana.demon.co.uk> 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





      reply	other threads:[~1996-04-18  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-17  0:00 Scope of identifiers Kevin F. Quinn
1996-04-18  0:00 ` Jon S Anthony [this message]
replies disabled

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