From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: Ada style of passing 'in' parameters considered dangerous?
Date: Sun, 09 Feb 2003 02:08:42 GMT
Date: 2003-02-09T02:08:42+00:00 [thread overview]
Message-ID: <3E45B86F.8020403@acm.org> (raw)
In-Reply-To: 86isvuzabx.fsf@hoastest1-8c.hoasnet.inet.fi
Antti Sykari wrote:
>
> - Is this generally considered a dangerous thing in Ada (or in
> general)?
It is dangerous in any language that allows subprograms to change the
value of its actual parameters to pass the same variable to more than
one parameter of a subprogram. There is nothing unique about Ada in this
regard.
>
> - Have you encountered a non-trivial real-life case where the
> programmer has shot himself in the foot in the form of
> implementation-defined behavior because of the error mentioned above?
> I'd be interested to hear of any such cases.
No.
--
Jeff Carter
"Death awaits you all, with nasty, big, pointy teeth!"
Monty Python & the Holy Grail
next prev parent reply other threads:[~2003-02-09 2:08 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-08 22:24 Ada style of passing 'in' parameters considered dangerous? Antti Sykari
2003-02-09 0:41 ` James S. Rogers
2003-02-09 2:11 ` Robert A Duff
2003-02-09 2:25 ` Jeffrey Carter
2003-02-11 8:39 ` Gautier
2003-02-09 2:01 ` Robert A Duff
2003-02-09 2:33 ` Vinzent Hoefler
2003-02-09 6:07 ` Richard Riehle
2003-02-09 7:13 ` Robert I. Eachus
2003-02-10 4:40 ` Martin Dowie
2003-02-09 2:08 ` Jeffrey Carter [this message]
2003-02-10 0:13 ` Leif Holmgren
2003-02-10 9:49 ` Rod Chapman
2003-02-11 9:14 ` Gautier
2003-02-11 13:49 ` Antti Sykari
2003-02-11 17:18 ` Gautier
2003-02-11 17:29 ` Vinzent Hoefler
2003-02-12 1:09 ` Richard Riehle
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox