From: mcsun!ukc!liv-cs!liv-uxa!darren@uunet.uu.net (Mr. D. Harter)
Subject: Re: why are these unknown identifiers?
Date: 17 Sep 91 14:58:07 GMT [thread overview]
Message-ID: <1991Sep17.145807.634@and.cs.liv.ac.uk> (raw)
jduarte@liege.ICS.UCI.EDU (Jose Duarte) writes:
> -----------------------------------------
> with X;
> package Y is
>
> subtype DIRECTIONS is X.DIRECTIONS;
>
> end Y;
> -----------------------------------------
.
.
.
>
> V1 : Y.Directions := Y.UP; -- Y.UP is unknown
> V2 : Y.Directions := Y.DOWN; -- Y.DOWN is unknown
>
My Ada's a bit rusty, too much exposer to C, but is your not going to use
the base type of Y.DIRECTIONS at any point try this:
with X;
package Y is
type DIRECTIONS renames X.DIRECTIONS;
end Y;
No flames if I'm wrong please.
--
Darren Harter | Computer Science Department
| University of Liverpool
ARPA/Internet: darren@compsci.liverpool.ac.uk | PO Box 147
JANET: darren@uk.ac.liverpool.compsci | Liverpool L69 3BX
next reply other threads:[~1991-09-17 14:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1991-09-17 14:58 Mr. D. Harter [this message]
-- strict thread matches above, loose matches on Subject: below --
1991-09-18 14:24 why are these unknown identifiers? & Wise
1991-09-11 21:02 Dave Williamson
1991-09-11 20:16 csus.edu!wupost!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!caen!uv
1991-09-11 19:24 Greg Harvey
1991-09-11 18:43 Robert I. Eachus
1991-09-11 14:13 agate!spool.mu.edu!news.cs.indiana.edu!arizona.edu!east.pima.edu!rharwood
1991-09-10 23:16 Jose Duarte
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox