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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1a52c822fc0dbb23 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!news.belwue.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Rational for not making cursor tagged in Containers Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1176998738.656903.141250@q75g2000hsh.googlegroups.com> <1177010938.200523.325290@p77g2000hsh.googlegroups.com> <1a8y2vakorfhx.225uqh4hifpd$.dlg@40tude.net> <1xmzi7newnilp.23m3zze8h9yi.dlg@40tude.net> <1177066583.5876.30.camel@localhost.localdomain> <1177080147.5876.87.camel@localhost.localdomain> <1q1kx2jlcvnuj.ck0711mj4few$.dlg@40tude.net> <15dj4pbkifj9c$.1g4y21vyx4j4d$.dlg@40tude.net> <1q5s2gqbzhatf$.2xu8gdz4hxm8$.dlg@40tude.net> <1177405128.6354.6.camel@localhost> Date: Tue, 24 Apr 2007 14:21:51 +0200 Message-ID: <1oqvcxl6fs48n.1wwdhh2t8o9vf$.dlg@40tude.net> NNTP-Posting-Date: 24 Apr 2007 14:21:51 CEST NNTP-Posting-Host: 12c61771.newsspool1.arcor-online.net X-Trace: DXC=Mj?05G[Reao;iVb[J9ZZP`ic==]BZ:afn4Fo<]lROoRaFl8W>\BH3Yb5>=EAGYI@jaDNcfSJ;bb[eFCTGGVUmh?dLK[5LiR>kgb>N@T\KBGodi X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:15254 Date: 2007-04-24T14:21:51+02:00 List-Id: On Tue, 24 Apr 2007 10:58:48 +0200, Georg Bauhaus wrote: > On Sun, 2007-04-22 at 10:38 +0200, Dmitry A. Kazakov wrote: > >> 'Class is a difficult case. And a general question regarding it is, should >> it be possible to have it "hyper-dispatching"? [sorry, for inventing new >> terms on the fly]? I mean T'Class'Class. > > I'm dense, is there any difference between T'Class and T'Class'Class? If you were allowed to derive from any type to get at the class of, then you could do: type Object is ...; procedure Foo (X : Object'Class); -- Does not dispatch on Object'Class type Meta_Object is new Object'Class with ...; procedure Bar (X : Meta_Object); -- Dispatches on Meta_Object I cannot think of any useful example for this. Perhaps: type Node; type Node_Ptr is access Node; type Node is new Object'Class with record Previous : Node_Ptr; Next : Node_Ptr; end record; Which is essentially: type Node (T : Tag) is record Previous : Node_Ptr; Next : Node_Ptr; Value : Object'Class (T); end record; -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de