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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f298e2224380e530 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-12 08:12:41 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: gautier_niouzes@hotmail.com (Gautier) Newsgroups: comp.lang.ada Subject: Re: Disriminant question - Waiting desperately for solution :-( Date: 12 Mar 2003 08:12:40 -0800 Organization: http://groups.google.com/ Message-ID: <17cd177c.0303120812.12ca963b@posting.google.com> References: <1ec946d1.0303070846.252c6407@posting.google.com> NNTP-Posting-Host: 213.173.163.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1047485561 6412 127.0.0.1 (12 Mar 2003 16:12:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 12 Mar 2003 16:12:41 GMT Xref: archiver1.google.com comp.lang.ada:35254 Date: 2003-03-12T16:12:41+00:00 List-Id: type T_TERM (LEG_TYPE : T_LEG_TYPE := NONE) is record case LEG_TYPE is when DF | TF | LIF | TP => FIX : T_FIX; when PPOS | NONE => null; end case; end record; ... L_TERM : SERVER_TYPES.T_TERM; Well, L_TERM has the discriminant LEG_TYPE = NONE. Then L_TERM.FIX is a nonsense. This is why... L_TERM := (LEG_TYPE => SERVER_TYPES.TF, FIX => ...bombs with a "discriminant error". Fun, isn't it ? ________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!