From: "Beard, Frank" <beardf@spawar.navy.mil>
To: "'comp.lang.ada@ada.eu.org'" <comp.lang.ada@ada.eu.org>
Subject: RE: Enumerated types
Date: Tue, 20 Feb 2001 14:28:47 -0500
Date: 2001-02-20T14:28:47-05:00 [thread overview]
Message-ID: <mailman.982697417.15034.comp.lang.ada@ada.eu.org> (raw)
-----Original Message-----
From: Andrew Hately [mailto:hat@cfmu.eurocontrol.be]
> type level is ( empty, low, medium, high, full, overflowing ) ;
> subtype critical_level is level <some_new_keyword> (empty, full,
overflowing);
There have been a number of times where I have needed to do this.
> Also, would Jeff Creem's <with> enumeration extension construct be
> applicable thus:
>
> type hard_fruit is ( apple, pear ) ;
> type soft_fruit is ( strawberry, raspberry ) ;
> type fruit is hard_fruit with soft_fruit ;
That's an interesting alternative. But now you basically have a multiple
inheritance situation.
Frank
reply other threads:[~2001-02-20 19:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox