From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=BAYES_00,HK_NAME_MR_MRS autolearn=no autolearn_force=no version=3.4.5-pre1 Date: 17 Sep 91 14:58:07 GMT From: mcsun!ukc!liv-cs!liv-uxa!darren@uunet.uu.net (Mr. D. Harter) Subject: Re: why are these unknown identifiers? Message-ID: <1991Sep17.145807.634@and.cs.liv.ac.uk> List-Id: 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