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,f298e2224380e530 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-07 14:32:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!uio.no!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: Re: Disriminant question Date: Fri, 7 Mar 2003 22:32:08 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: NNTP-Posting-Host: belenus.iks-jena.de X-Trace: branwen.iks-jena.de 1047076328 3062 217.17.192.34 (7 Mar 2003 22:32:08 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Fri, 7 Mar 2003 22:32:08 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:35056 Date: 2003-03-07T22:32:08+00:00 List-Id: * tmoran@acm.org wrote: >> Put_Line ("disk1'Size =" & Natural'Image (disk1'Size)); > The original question was whether you could change the discriminant. > Replacing all occurrences of "'Size" with ".some_disc" in program t > results in: > disk1.some_disc = 1 > disk3.some_disc = 3 > disk.some_disc = 1 > disk.some_disc = 3 > d.some_disc = 1 > d.some_disc = 2 > d.some_disc = 3 > d.some_disc = 4 > d.some_disc = 5 > e.some_disc = 1 > e.some_disc = 2 > e.some_disc = 3 > e.some_disc = 4 > e.some_disc = 5 > So the discriminant does change correctly. If you want to change > the 'Size of a record, that's a different question. No, it did not change beside the case "disk". The other line comes from different variables.