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,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-06 23:09:03 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: vashwath@rediffmail.com (prashna) Newsgroups: comp.lang.ada Subject: Disriminant question Date: 6 Mar 2003 23:09:03 -0800 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 203.90.112.53 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1047020943 18153 127.0.0.1 (7 Mar 2003 07:09:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 7 Mar 2003 07:09:03 GMT Xref: archiver1.google.com comp.lang.ada:35005 Date: 2003-03-07T07:09:03+00:00 List-Id: Hi all, How to change discriminant value dynamically? For ex, Have look at following program, procedure DISCRIMINANT1 is type DISC(some_disc : integer) is record case some_disc is when 1 | 2 => int1 : integer; when others => flt : float; end case; end record; DISC1 : DISC(3); begin disc1.some_disc := 1; ^^^^^^^^ I have to change the discriminant.Is there any way to do this.Any tips will be appriciated. end; Thanks