From: Jeff Carter <jrcarter@acm.org>
Subject: Re: Lower bound of result of Ada.Strings.Unbounded.Slice
Date: 2000/11/23
Date: 2000-11-23T00:00:00+00:00 [thread overview]
Message-ID: <3A1CD797.51D18865@acm.org> (raw)
In-Reply-To: hf_S5.891$aX.361455@homer.alpha.net
Randy Brukardt wrote:
> The correct AI to look at is AI-00238. It asks this exact question. You
> will note, however, that this is a work item AI which has not yet been
> considered by the full ARG. (It wasn't discussed at the recent meeting).
> The write-up is based on E-Mail discussion and aan existing
> implementation survey.
Thanks for pointing this out to me.
> The e-mail in the appendix is interesting; it is awful long for such a
> simple issue!
It certainly is interesting. FWIW, this is the first time I have needed
Slice, and I assumed the same bounds as To_String (U) (Low .. High). I
was using GNAT, so I got bit. Since the ARM has nothing to say on the
bounds, I tested it with another compiler and saw that its results
differed.
> Anyway, I think it wouldn't be too prudent to depend on any particular
> bounds from Slice until this issue is resolved.
I try to avoid compiler dependencies. The work around is fairly straight
forward:
declare
S : constant String (Low .. High) := Slice (U, Low, High);
begin
Statements where you would like to use Slice directly
end;
--
Jeff Carter
"Hello! Smelly English K...niggets."
Monty Python & the Holy Grail
prev parent reply other threads:[~2000-11-23 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-21 0:00 Lower bound of result of Ada.Strings.Unbounded.Slice Jeff Carter
2000-11-22 4:59 ` Robert Dewar
2000-11-22 0:00 ` Jeff Carter
2000-11-22 0:00 ` Randy Brukardt
2000-11-23 0:00 ` Jeff Carter [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox