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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a72073231ca787ee X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g19g2000yqc.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Determining value of record discriminant Date: Tue, 20 Jul 2010 01:53:35 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1670f622-7b4f-43d4-af0f-3448b4fd822d@g19g2000yqc.googlegroups.com> References: <3cc302a1-2764-438c-ba28-361c513fa8df@x20g2000pro.googlegroups.com> NNTP-Posting-Host: 137.138.182.236 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1279616015 20262 127.0.0.1 (20 Jul 2010 08:53:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 20 Jul 2010 08:53:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g19g2000yqc.googlegroups.com; posting-host=137.138.182.236; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:12478 Date: 2010-07-20T01:53:35-07:00 List-Id: On 20 Lip, 02:26, "Jeffrey R. Carter" wrote: > The discriminant is a field just like any other. It is read-only for the lifetime of the given object and it also cannot be aliased. AARM says that discriminants are components of the object, but I think that this is a bit misleading, as their use is restricted. I think that in some cases the compiler might completely eliminate them out of existence as a matter of space optimization and still provide the same syntax for reading their values. -- Maciej Sobczak * http://www.inspirel.com YAMI4 - Messaging Solution for Distributed Systems http://www.inspirel.com/yami4