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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2adf79f4e850a932,start X-Google-Attributes: gid103376,public From: car@swl.msd.ray.com (Chad Reichenbach {81726}) Subject: Curious Question Date: 1997/12/04 Message-ID: <66757i$mk5$1@swlab1.msd.ray.com>#1/1 X-Deja-AN: 295267293 Organization: Raytheon Company Newsgroups: comp.lang.ada Date: 1997-12-04T00:00:00+00:00 List-Id: I have a question I can'f figure out. If I have the following code: type My_Type is (obj1, obj2 obj3, obj4, obj5, obj6); subtype My_Subtype is My_Type range obj1 .. obj4; My question is, I need a new subtype that ranges from obj4 to obj1. Will the declaration subtype Second_Subtype is My_Subtype range My_Subtype'last .. My_Subtype'first do that? If not is there a way to do it without defining a new enumeration? The type would be used in a loop that loops through the enumeration objects using S'succ(S). TIA, chad