comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Call by reference vs. call by value
Date: 1996/07/21
Date: 1996-07-21T00:00:00+00:00	[thread overview]
Message-ID: <DuwxnG.F2E@world.std.com> (raw)
In-Reply-To: 31F10E50.726@egr.uri.edu


In article <31F10E50.726@egr.uri.edu>,
Christopher Felaco  <felaco@egr.uri.edu> wrote:
>My reasons for posting this are twofold.  The first reason is to verify
>that this is correct, ...

It is.

>... and see if anyone else has been bitten by this
>particular undefined behavior.

Yes, they have.

>...  The second reason is to express some
>disappointment.

I agree.  Making this implementation dependent is bad language design,
IMHO.

However, your suggested solution -- to always pass 'in' parameters by
reference -- is unacceptable from an efficiency point of view.  It means
you would have to copy huge amounts of data around when passing arrays
from one procedure to another to another to another.

It seems to me that a language can be designed so as to avoid the
problem you are complaining about, while still retaining the desirable
efficiency.  But it wouldn't be Ada.

- Bob




  parent reply	other threads:[~1996-07-21  0:00 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-20  0:00 Call by reference vs. call by value Christopher Felaco
1996-07-20  0:00 ` Robert Dewar
1996-07-21  0:00   ` Robert A Duff
1996-07-21  0:00     ` Robert Dewar
1996-07-22  0:00       ` Robert A Duff
1996-07-23  0:00         ` Peter Amey
1996-07-23  0:00           ` Robert A Duff
1996-07-27  0:00             ` Peter Morris
1996-07-28  0:00               ` Robert A Duff
1996-07-23  0:00           ` Robert Dewar
1996-07-24  0:00             ` Robert A Duff
1996-07-24  0:00           ` Richard A. O'Keefe
1996-07-22  0:00   ` Felaco
1996-07-22  0:00     ` Robert A Duff
1996-07-30  0:00       ` Richard A. O'Keefe
1996-07-22  0:00     ` Robert Dewar
1996-07-22  0:00   ` Karl Cooper {46901}
1996-07-22  0:00     ` Robert Dewar
1996-07-30  0:00   ` Felaco
1996-07-31  0:00     ` Robert A Duff
1996-08-02  0:00     ` Robert Dewar
1996-08-03  0:00     ` JP Thornley
1996-08-05  0:00       ` Roderick Chapman
1996-07-20  0:00 ` James A. Krzyzanowski
1996-07-20  0:00   ` Robert Dewar
1996-07-21  0:00 ` Robert A Duff [this message]
1996-07-21  0:00   ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1996-07-25  0:00 Marin David Condic, 407.796.8997, M/S 731-93
1996-07-26  0:00 ` Peter Amey
replies disabled

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