comp.lang.ada
 help / color / mirror / Atom feed
* Enumerations and rep-clauses?
@ 2000-02-28  0:00 Steve Folly
  2000-02-28  0:00 ` Tucker Taft
  0 siblings, 1 reply; 3+ messages in thread
From: Steve Folly @ 2000-02-28  0:00 UTC (permalink / raw)


Hi,

Given the following Ada95 situation...

  type enum is ( a, b, c, d );

  for enum use ( a => 12, b => 24, c => 36, d => 48 );

  subtype half_enum is enum range a .. b;


Is it guaranteed anywhere that half_enum has the same representation attributes
as enum? (ie. half_enum(a) => 12 and half_enum(b) => 24)

I would hope it did, but I'm having trouble finding the particular LRM
paragraph.


Thanks for your help.

-- 
Regards,
Steve Folly.
mailto:Steve.Folly@rdel.co.uk





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

end of thread, other threads:[~2000-02-28  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-28  0:00 Enumerations and rep-clauses? Steve Folly
2000-02-28  0:00 ` Tucker Taft
2000-02-28  0:00   ` Steve Folly

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