comp.lang.ada
 help / color / mirror / Atom feed
From: Wes Groleau <wesgroleau@despammed.com>
Subject: subtype range not of parent type?
Date: Tue, 09 Jul 2002 11:10:25 -0500
Date: 2002-07-09T11:10:25-05:00	[thread overview]
Message-ID: <3D2B0AF1.10692BC8@despammed.com> (raw)


   package User_defined is

      type integer_32_bit is range .....;
      for integer_32_bit'size use 32;

   ....

   Start  : constant User_defined.integer_32_bit :=  1;
   Finish : constant User_defined.integer_32_bit := 10;
   -- These constants are of this type, no?

   X : positive := Start;  -- is this legal?

   Y : index    := Start;  -- how about this?

   subtype index is positive range start .. finish;
   -- and finally .... ?
   
-- 
Wes Groleau
http://freepages.rootsweb.com/~wgroleau



             reply	other threads:[~2002-07-09 16:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-09 16:10 Wes Groleau [this message]
2002-07-09 16:13 ` subtype range not of parent type? Wes Groleau
replies disabled

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