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-Thread: 103376,f3687114209e3c2c X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!g38g2000yqd.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Abusing tagged types Date: Fri, 28 Nov 2008 06:08:41 -0800 (PST) Organization: http://groups.google.com Message-ID: <256b827b-f245-43af-bf17-b663c84041ba@g38g2000yqd.googlegroups.com> References: <87y6z4cefp.fsf@willow.rfc1149.net> <7cca32f3-0815-4564-b83a-d19a0e59b8ab@l42g2000yqe.googlegroups.com> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1227881322 18331 127.0.0.1 (28 Nov 2008 14:08:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 28 Nov 2008 14:08:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g38g2000yqd.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.12) Gecko/20070718 Red Hat/1.5.0.12-3.el5 Firefox/1.5.0.12,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:3803 Date: 2008-11-28T06:08:41-08:00 List-Id: Maciej Sobczakwrote: > By the way - what is the rationale for allowing Obj.Operation only for > tagged types and not for all types? "Ada 2005 Rationale" does not seem > to explain this. Actually it does but I find the explanation a bit cryptic for untagged types other than access types: "Other variations on the rules for the use of the notation were considered. One was that the mechanism should apply to untagged types as well but this was rejected on the grounds that it might add to rather than reduce confusion in some cases. In any event, untagged types do not have class wide types so they are intrinsically simpler. It would have been particularly confusing to permit the notation to apply to access types especially an access type A referring to a tagged type T. If the access type and the tagged type both had the same or similar operations Op then ambiguities or errors could easily arise." Maybe the AI has more details. -- Ludovic Brenta.