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,73057f1a3ca11607 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-ham1.dfn.de!news.uni-hamburg.de!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Is T an ancestor of T? Date: Wed, 20 Oct 2004 14:02:52 +0000 (UTC) Organization: GMUGHDU Message-ID: References: NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1098280972 6242 134.91.1.34 (20 Oct 2004 14:02:52 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Wed, 20 Oct 2004 14:02:52 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: g2news1.google.com comp.lang.ada:5520 Date: 2004-10-20T14:02:52+00:00 List-Id: Christoph Karl Walter Grein wrote: : From: Georg Bauhaus : :> I still don't know whether or not a type is an ancestor of itself, :> given that it is a descendant of itself. : : Looking into RM Index for ancestor, you'll find the reference to RM 3.4.1(10) with the definition of ancestor and descendant: Yes, descendant seem clearly defined in this paragraph. However, "The ultimate ancestor of a type is the ancestor of the type that is not a descendant of any other type." (In the original example, there was a new tagged private type T and an aggregate T'(T with n => ) which is o.K. by GNAT, not o.K. by Object Ada. When T is derive via new from some tagged T0, both compilers agree again.) What is "any other type"? Likely it means any type other than the descendant (which can be a descendant of itself according to the first sentence of 3.4.1(10))? So by the descendant wording, T0 ==> {T0, T1, T1', T2, ...}. Which of T0, ... is not a descendant of any other type? And is an ultimate ancestor listed in the line above when ancestor is "the reverse" of descendant? That is too tricky for me :-) -- Georg