comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de>
Subject: Re: Is T an ancestor of T?
Date: Wed, 20 Oct 2004 14:02:52 +0000 (UTC)
Date: 2004-10-20T14:02:52+00:00	[thread overview]
Message-ID: <cl5r6c$632$1@a1-hrz.uni-duisburg.de> (raw)
In-Reply-To: mailman.35.1098264739.10401.comp.lang.ada@ada-france.org

Christoph Karl Walter Grein <AdaMagica@web.de> wrote:
: From: Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de>
: 
:> 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



  reply	other threads:[~2004-10-20 14:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-18  5:55 Is T an ancestor of T? Christoph Karl Walter Grein
2004-10-20 14:02 ` Georg Bauhaus [this message]
2004-10-20 16:18   ` Björn Persson
2004-10-20 21:41     ` Georg Bauhaus
2004-10-20 23:33       ` Björn Persson
2004-10-22  2:27         ` Georg Bauhaus
2004-10-23 16:55           ` Björn Persson
2004-10-26  0:37             ` Randy Brukardt
  -- strict thread matches above, loose matches on Subject: below --
2004-10-12  1:31 record extension aggregate for returned type legal? Georg Bauhaus
2004-10-12  8:04 ` Martin Krischik
2004-10-12 14:36   ` Georg Bauhaus
     [not found]     ` <1940150.rU8f1KaX3L@linux1.krischik.com>
2004-10-12 20:24       ` Georg Bauhaus
2004-10-13  7:52         ` Martin Krischik
     [not found]           ` <ckjlhm$2hh$1@a1-hrz.uni-duisburg.de>
     [not found]             ` <ukhbd.106086$dP1.396181@newsc.telia.net>
2004-10-14  0:29               ` Is T an ancestor of T? Georg Bauhaus
2004-10-14  8:54             ` Is T an ancestor of T? (was: Re: record extension aggregate for returned type legal?) Martin Krischik
     [not found]               ` <ckot3m$hek$1@a1-hrz.uni-duisburg.de>
2004-10-15 16:55                 ` Is T an ancestor of T? Martin Krischik
2004-10-15 17:19                   ` Georg Bauhaus
2004-10-16 14:37                     ` Martin Krischik
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox