comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: One type for all
Date: 1999/07/20
Date: 1999-07-20T00:00:00+00:00	[thread overview]
Message-ID: <7n0hmk$ddq$1@nnrp1.deja.com> (raw)
In-Reply-To: wcciu7gej7r.fsf@world.std.com

In article <wcciu7gej7r.fsf@world.std.com>,
  Robert A Duff <bobduff@world.std.com> wrote:
> In the case of scalars, the rules are not at all like Ada --
in Pascal,
> all integers may be freely intermixed (except in certain
special cases
> like passing a component of a packed array as a VAR
parameter).  That
> is, there is nothing in Pascal equivalent to Ada's "type T is
range
> 1..10;".  Pascal only has the equivalent of "subtype S is
Integer range
> 1..10;".

No, no, you are answering another question, which is whether
Pascal has the same possibilities of defining separate types
as in Ada, and of course the answer is no! There is only one
integer type in Pascal. But the treatment of subtypes of this
one type is as in Ada, I don't see a difference.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




  reply	other threads:[~1999-07-20  0:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3783E0D2.5D74243@boeing.com>
1999-07-08  0:00 ` One type for all czgrr
1999-07-09  0:00 ` Samuel T. Harris
1999-07-10  0:00   ` Ehud Lamm
1999-07-12  0:00     ` Samuel T. Harris
1999-07-12  0:00   ` Robert Dewar
1999-07-12  0:00     ` Larry Kilgallen
1999-07-17  0:00       ` Robert Dewar
1999-07-18  0:00         ` Keith Thompson
1999-07-19  0:00           ` Robert Dewar
1999-07-18  0:00             ` Keith Thompson
1999-07-19  0:00             ` Tucker Taft
1999-07-19  0:00             ` Robert A Duff
1999-07-20  0:00               ` Robert Dewar [this message]
1999-07-20  0:00             ` Bill Findlay
1999-07-18  0:00         ` Samuel T. Harris
1999-07-12  0:00     ` Samuel T. Harris
replies disabled

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