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.9 required=5.0 tests=BAYES_00 autolearn=ham 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-28 10:18:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc03.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Variant Record Component References: <3E5F8B38.EE7AE76F@boeing.com> X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc03 1046456333 12.234.13.56 (Fri, 28 Feb 2003 18:18:53 GMT) NNTP-Posting-Date: Fri, 28 Feb 2003 18:18:53 GMT Organization: AT&T Broadband Date: Fri, 28 Feb 2003 18:18:53 GMT Xref: archiver1.google.com comp.lang.ada:34731 Date: 2003-02-28T18:18:53+00:00 List-Id: > based on the message header, a particular structure is frozen. Now I > pass the message object to a decode function that is looking for > particular message fields. Well, surprise surprise, we occasionally > raise Constraint_Error because the field in question is not present. Could you show what you mean? What is "frozen"? Are you getting a Constraint_Error because of errors in the data (a field is out of range, for instance), or because the program referenced msg.b when the discriminant/case statement said there was no field "b"? In the latter case, it sounds like the symptom is the attempt to reference msg.b, but the problem is erroneously thinking this message is of the subtype with a "b".