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/05 Message-ID: <79fmf6$ber@hobbes.crc.com>#1/1 X-Deja-AN: 441149012 References: <79fct8$9k3$1@murdoch.acc.Virginia.EDU> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Coleman Research Corporation Newsgroups: comp.lang.ada Date: 1999-02-05T00:00:00+00:00 List-Id: Brian Rogoff wrote in message ... >On 5 Feb 1999, Norman Ramsey wrote: >There is no typecase, but if you want exact tag comparisons you can >use > > if p'Tag = Painted_Point then > ... do someting with Painted_Point > elsif p'Tag = Tall_Point then > ... yadda yadda yadda > ... Don't you mean: if P'Tag = Painted_Point'Tag then ... do someting with Painted_Point elsif P'Tag = Tall_Point'Tag then ... yadda yadda yadda ... ??