comp.lang.ada
 help / color / mirror / Atom feed
From: robert_dewar@my-dejanews.com
Subject: Re: Ada 95 LRM Error?
Date: 1999/02/02
Date: 1999-02-02T00:00:00+00:00	[thread overview]
Message-ID: <7963cg$a3a$1@nnrp1.dejanews.com> (raw)
In-Reply-To: yecu2x715hb.fsf@king.cts.com

In article <yecu2x715hb.fsf@king.cts.com>,
  Keith Thompson <kst@cts.com> wrote:
> robert_dewar@my-dejanews.com writes:
> The general point is correct, but the specific point is
> not; int and char are definitely distinct types in C.

Well I was using type and subtype in the Ada sense, which
I agree is a bit confusing, since the notion of type in
C subsumes both ideas. But the critical point of the
meaning of type in Ada is that different types are
not assignment compatible, so in Ada terms, int and char
cannot be considered different types.

The promotion you talk of in C, corresponds to the
conversion of subtypes to the base type in Ada or some
such. It is always difficult to compare languages at
this level of terminology when the terminologies differ.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




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

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-27  0:00 Ada 95 LRM Error? Al Christians
1999-01-27  0:00 ` Martin C. Carlisle
1999-01-28  0:00   ` J. David Bryan
1999-01-28  0:00 ` robert_dewar
1999-01-28  0:00 ` Richard D Riehle
1999-01-27  0:00   ` Al Christians
1999-01-28  0:00     ` Richard D Riehle
1999-01-28  0:00       ` Interfaces.Cobol (Was LRM Error?) Al Christians
1999-01-29  0:00       ` Ada 95 LRM Error? robert_dewar
1999-01-31  0:00         ` Keith Thompson
1999-02-01  0:00           ` Types (was Ada 95 LRM Error?) Richard D Riehle
1999-02-02  0:00           ` robert_dewar [this message]
1999-01-28  0:00     ` Ada 95 LRM Error? robert_dewar
1999-01-28  0:00       ` Al Christians
replies disabled

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