From: williams@crc.sofkin.ca (Dave Williamson)
Subject: Re: why are these unknown identifiers?
Date: Wed, 11 Sep 91 17:02:55 -0400 [thread overview]
Message-ID: <9109112102.AA04696@crc.sofkin.ca> (raw)
Jose Duarte writes:
>package X is
> type DIRECTIONS is (UP, DOWN,...
>end X;
>with X;
>package Y is
> subtype DIRECTIONS is X.DIRECTIONS;
>end Y;
>with Y;
>procedure BUG is
>V1 : Y.Directions := Y.UP;
>.....
>Can someone tell me why "Y.UP" and "Y.DOWN" are unknown identifiers....
Looks right to me. Y.UP and Y.DOWN don't exist. What you probably mean
to do is declare a dervied type as follows:
with X;
package Y is
type DIRECTIONS is new X.DIRECTIONS;
end Y;
Dave Williamson
Software Kinetics Ltd.
Ottawa, Canada
williams@crc.sofkin.ca
next reply other threads:[~1991-09-11 21:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1991-09-11 21:02 Dave Williamson [this message]
-- strict thread matches above, loose matches on Subject: below --
1991-09-18 14:24 why are these unknown identifiers? & Wise
1991-09-17 14:58 Mr. D. Harter
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