comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: Question (was Re: How to write TYPECASE in Ada 95?)
Date: 1999/02/24
Date: 1999-02-24T00:00:00+00:00	[thread overview]
Message-ID: <m31zjf4ryv.fsf@mheaney.ni.net> (raw)
In-Reply-To: 36D4130E.2D476D7A@hso.link.com

"Samuel T. Harris" <sam_harris@hso.link.com> 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.







  reply	other threads:[~1999-02-24  0:00 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-05  0:00 How to write TYPECASE in Ada 95? Norman Ramsey
1999-02-05  0:00 ` Brian Rogoff
1999-02-05  0:00   ` David C. Hoos, Sr.
1999-02-05  0:00     ` Brian Rogoff
1999-02-06  0:00   ` Ed Falis
1999-02-06  0:00     ` Nick Roberts
1999-02-06  0:00       ` Nick Roberts
1999-02-17  0:00     ` Tom Moran
1999-02-18  0:00       ` Matthew Heaney
1999-02-18  0:00         ` Tom Moran
1999-02-18  0:00         ` robert_dewar
1999-02-19  0:00           ` Nick Roberts
1999-02-19  0:00           ` Tom Moran
1999-02-18  0:00         ` Tom Moran
1999-02-18  0:00           ` Matthew Heaney
1999-02-19  0:00     ` Tom Moran
1999-02-19  0:00       ` Tom Moran
1999-02-23  0:00       ` Samuel Mize
1999-02-23  0:00         ` Question (was Re: How to write TYPECASE in Ada 95?) Mike Silva
1999-02-24  0:00           ` Samuel T. Harris
1999-02-24  0:00             ` Matthew Heaney [this message]
1999-02-24  0:00               ` Tucker Taft
1999-02-24  0:00           ` Nick Roberts
1999-02-24  0:00           ` (long) programming by extension (was: " Samuel Mize
1999-02-24  0:00             ` (long) programming by extension Samuel Mize
1999-02-25  0:00               ` (shorter and new) " Samuel Mize
1999-02-25  0:00                 ` Mike Silva
1999-02-26  0:00                   ` Samuel Mize
1999-02-06  0:00 ` How to write TYPECASE in Ada 95? Matthew Heaney
1999-02-06  0:00 ` David C. Hoos, Sr.
1999-02-06  0:00   ` Matthew Heaney
1999-02-06  0:00     ` Matthew Heaney
1999-02-06  0:00     ` Matthew Heaney
1999-02-09  0:00     ` David C. Hoos, Sr.
replies disabled

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