From: Mats Weber <Mats.Weber@elca-matrix.ch>
Subject: Re: VMS to Unix (was: Is there a Fortran to Ada translator)
Date: 1997/02/17
Date: 1997-02-17T00:00:00+00:00 [thread overview]
Message-ID: <33087143.36F9@elca-matrix.ch> (raw)
In-Reply-To: 5e77gh$qp4$1@salyko.cube.net
Oliver Kellogg wrote:
> Talking of Fortran, how come the types Fortran_Integer, Real, Complex
> etc. in package Interfaces.Fortran are derived types not subtypes?
Subtypes of what types ? The fact that they are derived from
Standard.Integer, Standard.Float, etc. in GNAT is just because they
happen to have the same ranges.
It could very well be that on an implementation, a Fortran integer is 32
bits and an Ada standard.integer is 64 bits.
In the standard, they are given as
type Fortran_Integer is range <implementation defined>;
and GNAT chose to derive them from the standard types instead of writing
type Fortran_Integer is range Integer'First .. Integer'Last;
next prev parent reply other threads:[~1997-02-17 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-02-12 0:00 VMS to Unix (was: Is there a Fortran to Ada translator) W. Wesley Groleau (Wes)
1997-02-16 0:00 ` Oliver Kellogg
1997-02-17 0:00 ` Robert Dewar
1997-02-17 0:00 ` Mats Weber [this message]
1997-02-18 0:00 ` Robert Dewar
1997-02-26 0:00 ` Oliver Kellogg
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox