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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,47def5aa7b3182bd X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: How to write TYPECASE in Ada 95? Date: 1999/02/09 Message-ID: <79pbe6$6r5@hobbes.crc.com>#1/1 X-Deja-AN: 442408326 References: <79fct8$9k3$1@murdoch.acc.Virginia.EDU> <0JJEkbcU#GA.219@pet.hiwaay.net> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Coleman Research Corporation Newsgroups: comp.lang.ada Date: 1999-02-09T00:00:00+00:00 List-Id: Matthew Heaney wrote in message ... >"David C. Hoos, Sr." writes: > >Declare blocks are your friend. Unnecessary use of heap is your enemy. Agreed. In fact, often the appropriate thing to do is use a declare block -- e.g., when reading from a stream, and the type is unknown -- but in this case I was also attempting to show that the same _object_ could refer to any descendnts of the root class.