From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,49c69fcb0de2bb74,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-08-27 19:47:25 PST From: "Alex Angas" Newsgroups: comp.lang.ada Subject: Types vs subtypes Date: Mon, 28 Aug 2000 12:17:11 +0930 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: ppp38.adelaide.on.net.au Message-ID: <39a9d2b0@duster.adelaide.on.net> X-Trace: 28 Aug 2000 12:17:12 +0950, ppp38.adelaide.on.net.au Path: supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mel.connect.com.au!news1.optus.net.au!optus!yorrell.saard.net!duster.adelaide.on.net!ppp38.adelaide.on.net.au Xref: supernews.google.com comp.lang.ada:347 Date: 2000-08-28T12:17:11+09:30 List-Id: 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.