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,e8550e5b10c2c0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-26 12:50:18 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!fr.usenet-edu.net!usenet-edu.net!enst.fr!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: Variant Record Component Date: Wed, 26 Feb 2003 14:50:00 -0600 Organization: ENST, France Message-ID: References: <3E5D00D6.F6A20AD2@boeing.com> Reply-To: "comp.lang.ada mail to news gateway" NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1046292617 58873 137.194.161.2 (26 Feb 2003 20:50:17 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 26 Feb 2003 20:50:17 +0000 (UTC) To: "comp.lang.ada mail to news gateway" Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:34626 Date: 2003-02-26T14:50:00-06:00 ----- Original Message ----- From: "John Harbaugh" Newsgroups: comp.lang.ada To: Sent: Wednesday, February 26, 2003 12:00 PM Subject: Variant Record Component > Hi, all - > > Is there a way to determine if an object of some variant record type > contains a specific variant component, other than a trying it and > handling a possible constraint error? I looked for something like and > "in" operator or suitable attribute, but found nothing. Well, this sort of thing should not be necessary if the accesses to the record components are done distinctly for different values of the discriminant as part of a case statement; > > Thanks in advance, > > - John Harbaugh > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada >