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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,47def5aa7b3182bd X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Question (was Re: How to write TYPECASE in Ada 95?) Date: 1999/02/24 Message-ID: #1/1 X-Deja-AN: 447963835 Sender: matt@mheaney.ni.net References: <79fct8$9k3$1@murdoch.acc.Virginia.EDU> <1103_918264881@DZOG-CHEN> <36cdb012.580716@news.pacbell.net> <7av52o$62g@news3.newsguy.com> <7avc0i$cnb$1@its.hooked.net> <36D4130E.2D476D7A@hso.link.com> NNTP-Posting-Date: Wed, 24 Feb 1999 09:41:05 PDT Newsgroups: comp.lang.ada Date: 1999-02-24T00:00:00+00:00 List-Id: "Samuel T. Harris" writes: > I just wish Ada didn't use the term class-wide type. > It is a term with too much overloaded meaning. The term "class" already had that meaning in Ada83: the class of float point types, the class of integer types, etc. It was Tucker's vision for Ada95 that it preserve as much as possible that Ada83 way of doing things. I just wish Ada allowed the attribute T'Class for non-tagged types too. That would be a way to solve the problem of simultaneous derivation. For example, if New_Line had been declared something like this: procedure New_Line (File : in File_Type; Spacing : in Positive_Count'Class := 1); then if we did this: package P is type File_Type is new Text_IO.File_Type; type Positive_Count is new Text_IO.Positive_Count; end P; then you'd get a New_Line at the point of declaration of P.File_Type that works with type P.Positive_Count.