From: car@swl.msd.ray.com (Chad Reichenbach {81726})
Subject: Curious Question
Date: 1997/12/04
Date: 1997-12-04T00:00:00+00:00 [thread overview]
Message-ID: <66757i$mk5$1@swlab1.msd.ray.com> (raw)
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
next reply other threads:[~1997-12-04 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-12-04 0:00 Chad Reichenbach {81726} [this message]
1997-12-05 0:00 ` Curious Question Tucker Taft
1997-12-09 0:00 ` Anonymous
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox