comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: assignments using different types
Date: 1997/02/10
Date: 1997-02-10T00:00:00+00:00	[thread overview]
Message-ID: <dewar.855629813@merv> (raw)
In-Reply-To: 32eeaf02.9413191@NEWS.CLOUD9.NET


Paul said

<<why are you re-casting variables that are already in the proper cast.
The only time you need to re-cast a variable into float is when the
variable is an integer.>>

This is quite wrong, it would be true in C, but is not just false for Ada.
It is the *essence* of a critical feature of Ada that it is false! In the
example you were commenting on, the float types were different types,
and the casts, called type conversions in ada, were definitely necessary.





  reply	other threads:[~1997-02-10  0:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-28  0:00 assignments using different types David Dessert
1997-01-28  0:00 ` Christopher Green
1997-01-29  0:00 ` Robert Dewar
1997-01-29  0:00 ` Robert Dewar
1997-01-30  0:00   ` inter-unit inlining (was: Re: assignments using different types) Fergus Henderson
1997-01-29  0:00 ` assignments using different types Robert I. Eachus
1997-01-29  0:00 ` Paul Van Bellinghen
1997-02-10  0:00   ` Robert Dewar [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-01-29  0:00 tmoran
1997-01-30  0:00 Thomas
replies disabled

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