comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: ada.strings.unbounded "free" and "String_Access"
Date: 2000/03/13
Date: 2000-03-13T00:00:00+00:00	[thread overview]
Message-ID: <8ajghd$9qq$1@nnrp1.deja.com> (raw)
In-Reply-To: wccog8llcpu.fsf@world.std.com

In article <wccog8llcpu.fsf@world.std.com>,
  Robert A Duff <bobduff@world.std.com> wrote:
> Right.  The inconvenience comes from the fact that you will
end up with
> several String_Access types in different packages (some
probably called
> String_Ptr, and so forth), and then when writing some code
that uses
> more than one package, you end up with a bunch of silly type
> conversions.
>
> If you always use the One True String_Access, you avoid that
problem,
> although that seems kind of kludgy if you don't really want to
use
> Unbounded_Strings.


I really wanted to have a feature in Ada 95 to be able to refer
to a standard access type for any given type, perhaps something
like String'Access, but I could not generate enough enthusiasm
for this idea. As a result, you do indeed tend to get junk
access all over the place.

Note that there is a String_Access type just sitting there in
unbounded strings for no apparent purpose (it is not used
anywhere in the package). Perhaps the idea is that anyone
who needs a standard string access type should with this
(rather large) package?????



Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~2000-03-13  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-07  0:00 ada.strings.unbounded "free" and "String_Access" Al Johnston
2000-03-08  0:00 ` Nick Roberts
2000-03-08  0:00   ` Jeff Carter
2000-03-10  0:00     ` Ted Dennison
2000-03-11  0:00   ` Robert A Duff
2000-03-13  0:00     ` Robert Dewar [this message]
2000-03-08  0:00 ` Robert A Duff
2000-03-09  0:00 ` Al Johnston
replies disabled

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