comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: About conversions
Date: 2000/11/21
Date: 2000-11-21T00:00:00+00:00	[thread overview]
Message-ID: <8ve71q$meh$1@nnrp1.deja.com> (raw)
In-Reply-To: u8zqe5klh.fsf@gsfc.nasa.gov

In article <u8zqe5klh.fsf@gsfc.nasa.gov>,
  Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov> wrote:
> Robert Dewar <robert_dewar@my-deja.com> writes:
> convert an out parameter would happen about as often as
> needing to convert an in parameter, or a function result.

Not at all! Because you think of an out parameter as an Lvalue,
and conversions are not allowed as left sides in assignments.
If you really believe the above, you would want backwards
conversions on the left of assigments.

Note that all other comparable languages allow conversions for
input parameters, NONE of them allows these strange out
conversions.

Good advice is to avoid this feature almost always.


Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~2000-11-21  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-20  0:00 About conversions Sandro Binetti
2000-11-20  0:00 ` Ken Garlington
2000-11-20  0:00   ` Robert Dewar
2000-11-20  0:00     ` Stephen Leake
2000-11-21  0:00       ` Robert Dewar [this message]
2000-11-21  0:00         ` Warren W. Gay VE3WWG
2000-11-21  0:00           ` Robert Dewar
2000-11-21  0:00             ` Ted Dennison
2000-11-22  3:27               ` Warren W. Gay VE3WWG
2000-11-22  4:54               ` Robert Dewar
2000-11-22  0:00                 ` Wes Groleau
2000-11-22  0:00                 ` Ted Dennison
2000-11-22  0:00         ` Tristan Gingold
2000-11-24  0:00         ` Jean-Pierre Rosen
2000-11-24  0:00       ` Jean-Pierre Rosen
2000-11-21  2:57     ` DuckE
2000-11-21  0:00       ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
2000-11-23  6:21 Christoph Grein
2000-11-23  0:00 ` Wilhelm Spickermann
2000-11-23  0:00   ` Florian Weimer
2000-11-23  0:00     ` Wilhelm Spickermann
2000-11-28  2:20   ` Robert Dewar
2000-11-24  0:00 Christoph Grein
2000-11-28  1:33 ` Robert Dewar
replies disabled

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