From: "Alex Angas" <wgd@adelaide.on.net>
Subject: Types vs subtypes
Date: Mon, 28 Aug 2000 12:17:11 +0930
Date: 2000-08-28T12:17:11+09:30 [thread overview]
Message-ID: <39a9d2b0@duster.adelaide.on.net> (raw)
I've been given an Ada project to work on and I'm trying to work out what
the difference between using a type or subtype is. Why is myarray an array
of st, instead of just making it an array of t in the following declaration?
type enum is ( red, green, blue ) ;
type t is array( enum ) of natural ;
subtype st is t;
type myarray is array( enum ) of st;
They both seem to compile the same. What am I missing?
Thanks for your help,
Alex.
next reply other threads:[~2000-08-28 2:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-28 2:47 Alex Angas [this message]
2000-08-28 0:00 ` Types vs subtypes Richard Riehle
2000-08-29 0:00 ` Marc A. Criley
2000-08-29 0:00 ` Jean-Pierre Rosen
2000-08-29 6:06 ` Preben Randhol
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox