comp.lang.ada
 help / color / mirror / Atom feed
From: hsdndev!encore!m2c!garbo!risky!dime!sandy@rutgers.edu  (& Wise)
Subject: Re: why are these unknown identifiers?
Date: 18 Sep 91 14:24:54 GMT	[thread overview]
Message-ID: <SANDY.91Sep18102454@beeker.cs.umass.edu> (raw)

In article <1991Sep17.145807.634@and.cs.liv.ac.uk> darren@uxa.liv.ac.uk (Mr. D.
 Harter) writes:
   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.

No flames.  Just the simple observation that renames clauses do not
work for type declarations.  You must use subtypes for this.

        /s
--
Alexander Erskine Wise /\/\/\/\/\/\/\/\/\/\/\/\ Software Development Laboratory
/\/\/\/\/\/\/\/\/\/\/\/\/\/\ WISE@CS.UMASS.EDU /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\ This situation calls for large amounts of unadulterated CHOCOLATE! /\/\/\

             reply	other threads:[~1991-09-18 14:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-09-18 14:24 & Wise [this message]
  -- strict thread matches above, loose matches on Subject: below --
1991-09-17 14:58 why are these unknown identifiers? Mr. D. Harter
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