comp.lang.ada
 help / color / mirror / Atom feed
From: "Warren W. Gay VE3WWG" <ve3wwg@home.com>
Subject: Re: About conversions
Date: 2000/11/21
Date: 2000-11-21T00:00:00+00:00	[thread overview]
Message-ID: <3A1AB12E.8780B626@home.com> (raw)
In-Reply-To: 8ve71q$meh$1@nnrp1.deja.com

Robert Dewar wrote:

> 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.

To avoid it requires declaring another "receiving variable" of the
correct type, and then converting it with a subsequent assignment.
This is not only inconvenient, but would create an extra source
of "duplicated variables", which complicates what would otherwise
be a simpler piece of code.

Consequently, I like the feature ;-)

>
>
> 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
2000-11-21  0:00         ` Warren W. Gay VE3WWG [this message]
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