From: Steve O'Neill <oneils@gbr.msd.ray.com>
Subject: Re: Unbounded Strings
Date: Wed, 08 Oct 2003 09:19:07 -0400
Date: 2003-10-08T09:19:07-04:00 [thread overview]
Message-ID: <3F840ECB.273F718D@gbr.msd.ray.com> (raw)
In-Reply-To: 3F840CBE.6080904@noplace.com
Marin David Condic wrote:
>
> Pointers to strings are certainly possible in Ada, but that's kind of a
> sign of a C/C++ programmer trying to utilize all their C/C++ idioms in a
> different language. I remember quite a while back watching a C guy
> struggling with Ada and trying to use 'Address everywhere in passing
> parameters like strings to subroutines. He was convinced he needed to do
> that to get a "by reference" parameter because he was so conditioned to
> think that way by C. Obviously, you *can* do it that way - its just not
> necessary and really makes your life harder.
My favorite abuse of 'address though still has to be code I reviewed
where
the developer had many routines where he was passing addresses of
locally
declared variables out of procedures. This was code for a device driver
and, of course, the reasoning was that "this would be faster".
The good news was that this was caught during a review and never made it
to the point of attempting to be run... although it would have been
interesting to see the results.
Steve O'Neill
next prev parent reply other threads:[~2003-10-08 13:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20031007175516.DC2884C40C8@lovelace.ada-france.org>
2003-10-08 5:52 ` Unbounded Strings Andrew Carroll
2003-10-08 6:22 ` Preben Randhol
2003-10-08 13:10 ` Marin David Condic
2003-10-08 13:19 ` Steve O'Neill [this message]
2003-10-08 18:46 ` Jeffrey Carter
2003-10-08 23:55 ` Mark Lorenzen
2003-10-09 18:23 ` Craig Carey
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox