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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5b0235b23a9db0f2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-20 11:30:22 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "Beard, Frank" Newsgroups: comp.lang.ada Subject: RE: Enumerated types Date: Tue, 20 Feb 2001 14:28:47 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: avanie.enst.fr 982697418 59010 137.194.161.2 (20 Feb 2001 19:30:18 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Tue, 20 Feb 2001 19:30:18 +0000 (UTC) To: "'comp.lang.ada@ada.eu.org'" Return-Path: X-Mailer: Internet Mail Service (5.5.2448.0) Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: supernews.google.com comp.lang.ada:5377 Date: 2001-02-20T14:28:47-05:00 -----Original Message----- From: Andrew Hately [mailto:hat@cfmu.eurocontrol.be] > type level is ( empty, low, medium, high, full, overflowing ) ; > subtype critical_level is level (empty, full, overflowing); There have been a number of times where I have needed to do this. > Also, would Jeff Creem's 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