comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison <dennison@telepath.com>
Subject: Re: About conversions
Date: 2000/11/21
Date: 2000-11-21T00:00:00+00:00	[thread overview]
Message-ID: <8vetq2$bkb$1@nnrp1.deja.com> (raw)
In-Reply-To: 8vept5$814$1@nnrp1.deja.com

In article <8vept5$814$1@nnrp1.deja.com>,
  Robert Dewar <robert_dewar@my-deja.com> wrote:
(talking about converting actual "out" parameters)
> If you use this feature, you will most definitely confuse
> the reader, especially in the case of an out parameter,
> precisely because the syntax is so confusing. Note that

To the reader, it doesn't look any different than the conversion of an
"in" parameter. They have to go to the subprogram declaration to even
see what the mode is. Prohibiting conversions for "out" but allowing it
for "in" would just be an extra (also confusing) rule for developers to
remember about when its allowed and when it isn't. Plus it would cause
the extra source code previously mentioned to create the new temp
variable. Tracking that down and making sure its handled right before
and after the call is just going to be more extra work for maintainers.

You do have a point about it being confusing to some beginners. I'd
imagine its particularly bad for those who are comming from another
language that doesn't allow this kind of thing. But I don't think you
can say that its an inarguable maintanence problem. It can be argued
either way.

--
T.E.D.

http://www.telepath.com/~dennison/Ted/TED.html


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
2000-11-21  0:00           ` Robert Dewar
2000-11-21  0:00             ` Ted Dennison [this message]
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