comp.lang.ada
 help / color / mirror / Atom feed
* Curious Question
@ 1997-12-04  0:00 Chad Reichenbach {81726}
  1997-12-05  0:00 ` Tucker Taft
  1997-12-09  0:00 ` Anonymous
  0 siblings, 2 replies; 3+ messages in thread
From: Chad Reichenbach {81726} @ 1997-12-04  0:00 UTC (permalink / 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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-12-09  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-04  0:00 Curious Question Chad Reichenbach {81726}
1997-12-05  0:00 ` Tucker Taft
1997-12-09  0:00 ` Anonymous

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