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: a07f3367d7,a78600718149068b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!a37g2000yqi.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: tagged primitive operation and freezing Date: Tue, 16 Nov 2010 00:53:03 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <878w0xr069.fsf@ludovic-brenta.org> <076ebb12-e620-48b7-ab0f-cb90169d91b4@g4g2000prj.googlegroups.com> <6d5b4fec-ac32-4efe-a9b8-02cbaca625b9@u25g2000pra.googlegroups.com> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1289897583 6782 127.0.0.1 (16 Nov 2010 08:53:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 16 Nov 2010 08:53:03 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a37g2000yqi.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.9.0.6) Gecko/2009012111 Red Hat/3.0.6-1.el5 Firefox/3.0.6,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:16490 Date: 2010-11-16T00:53:03-08:00 List-Id: troll wrote on comp.lang.ada: >> But only if it is tagged. untagged type, even though frozen, DOES >> compile. My initial reaction to this was: of course, because, if type A is untagged, type Flight_T is new A; freezes Flight_T immediately since its representation is known, therefore procedure C is new Blah (Object_T => Flight_T); is not primitive because not dynamically dispatching. After re-reading 13.14, I see it does not discuss non-tagged types or types derived from non-tagged types, so I'm not so sure about the first part anymore. And, per 3.2.3(6), C seems to be primitive after all (primitive subprograms are not necessarily dynamically dispatching). While I intuitively agree with Adam's explanation, I can't find the chapter and verse in the ARM that backs it; it seems like a gray area to me. -- Ludovic Brenta.