comp.lang.ada
 help / color / mirror / Atom feed
From: mcsun!julienas!newsserver!geant!bruniau@uunet.uu.net  (Christophe Bruniau
Subject: Re: Classes vs Tagged Types - Terminology
Date: 6 Apr 93 16:46:42 GMT	[thread overview]
Message-ID: <1993Apr6.164642.9487@cenatls.cena.dgac.fr> (raw)

In article <1993Apr5.155419.8598@evb.com>, jgg@evb.com (John Goodsen) writes:
|> In <1993Mar25.155650.16244@inmet.camb.inmet.com> 
|> stt@spock.camb.inmet.com (Tucker Taft) writes:
|> 
|> >
|> >In Ada 9X, it is only class-wide types (named "T'Class") that provide
|> >subclass matching.
|> >                      ^^^^^^^^^^^^^^^^^
|>                        Didn't you mean "tagged types" :-)
|> 
|> Can we take this as an indicator that you are about ready to
|> abondon the "tagged type" terminology and adopt the more
|> appropriate "class type" terminology?  It seems that even
|> members of the 9X project are shying away from using "tagged
|> type" these days, so why don't just finish the scenario and
|> adopt the "class type" syntax and terminology ...
|> 
|> fingers crossed...
|> 

Does anyone know the original reason why "tagged type" was introduced,
 instead of something like "class type" ?

I think that a terminology like "class type" would make explanations like
 the one below more straightforward.
This could make Ada-9X more "sexy", for those who don't see immediately
its advantages :-)

>Given a tagged type T and two derived types T1 and T2, you get the
>following:  T1'class and T2'class are subclasses of T'class.
>Any object belonging to the specific type T1 is thus an instance of
>T1'class and of T'class.  Same for T2, mutatis mutandis.  Any object
>belonging to the specific type T is an instance of T'class (but not of
>T1'class, of course). Thus:
>	X : T;  -- instance of T'class
>	Y : T1; -- instance of T1'class and T'class
>	Z : T2; -- instance of T2'class and T'class


Christophe BRUNIAU     bruniau@cenatls.cena.dgac.fr

             reply	other threads:[~1993-04-06 16:46 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-04-06 16:46 mcsun!julienas!newsserver!geant!bruniau [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-04-07 13:49 Classes vs Tagged Types - Terminology pipex!uknet!warwick!zaphod.crihan.fr!univ-lyon1.fr!scsing.switch.ch!sicsu
1993-04-06 16:36 Harry Koehnemann
1993-04-05 15:54 John Goodsen
1993-04-05 23:04 ` Mark A Biggar
1993-03-22 11:46 Charles Lindsey
1993-03-24  7:42 ` Richard A. O'Keefe
1993-03-25 15:56   ` Tucker Taft
1993-03-26 11:02     ` Stephen J Bevan
1993-03-30 14:34       ` Tucker Taft
1993-03-31 16:21         ` Stephen J Bevan
1993-03-31 20:46         ` Robert I. Eachus
1993-03-24  8:58 ` Robb Nebbe
1993-03-25  0:15   ` David Emery
1993-03-29  9:26     ` Robb Nebbe
replies disabled

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