comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Slice and Unbounded String
Date: 1996/11/30
Date: 1996-11-30T00:00:00+00:00	[thread overview]
Message-ID: <dewar.849335191@merv> (raw)
In-Reply-To: E1JKuL.HFp@world.std.com


Robert Duff says

"See A.4.5(82), A.4.4(101), A.4.4(1) "whose low bound is 1", A.4.3(2),
and AI-128.  The correct result is 1..3.
"


Hmmm! I don't have AI-128 here, but I don't think the RM references are
conclusive. A.4.4(1) refers only to bounded string values (and that is
also true of the "whose low bound is 1" phrase), so it does not apply.
A.4.5(82) merely points us to A.4.4(101), which to my reading suggests
the other interpretation (low bound not necessarily 1), but only suggests ..

A.4.3(2) is conclusive, but applies to Fixed_Strings.

Now it maybe that AI-128 does indeed clear this up, but the wording should
be checked. It seems a bit anomolous that Slice returns a String rather than
an unbounded String ....


P.S. In Strings.Unbounded, what on earth is

7      type String_Access is access all String;
       procedure Free (X : in out String_Access);


these declarations are not referenced elsewhere in the package and are,
as far as I can see, completely irrelevant rubbish -- perhaps thjey had
some historical significance.

I could see providing these standard delcarations in Ada.Strings, but
not in Ada.Strings.Unbounded.





  reply	other threads:[~1996-11-30  0:00 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <01bbdc70$2e557160$262a6282@cln49ae>
1996-11-27  0:00 ` Slice and Unbounded String Robert A Duff
1996-11-30  0:00   ` Robert Dewar [this message]
1996-12-01  0:00     ` Robert A Duff
1996-12-01  0:00       ` Robert Dewar
1996-12-01  0:00         ` Ben Brosgol
1996-12-09  0:00     ` Gnat v3.05 bug or compilation problem MAKOUDI Jaouad (Stag. Kermarrec)
1996-12-09  0:00       ` Larry Kilgallen
1996-12-09  0:00       ` Root of a GNAT problem (was: " Peter Hermann
1996-12-09  0:00         ` Robert Dewar
1996-12-10  0:00           ` Ken Garlington
1996-12-10  0:00             ` Robert Dewar
1996-12-10  0:00             ` Tom Moran
1996-12-11  0:00               ` Robert Dewar
1996-12-11  0:00               ` Larry Kilgallen
1996-12-11  0:00                 ` Robert Dewar
1996-12-11  0:00                 ` Norman H. Cohen
1996-12-11  0:00                   ` Tom Moran
1996-12-12  0:00                     ` Larry Kilgallen
1996-12-11  0:00               ` Peter Hermann
1996-12-11  0:00                 ` Robert Dewar
1996-12-12  0:00               ` John Cosby
1996-12-13  0:00                 ` Robert Dewar
1996-12-09  0:00         ` Larry Kilgallen
1996-12-09  0:00           ` Robert Dewar
1996-12-10  0:00             ` Larry Kilgallen
1996-12-10  0:00               ` Robert Dewar
1996-12-10  0:00             ` Peter Hermann
1996-12-10  0:00               ` Robert Dewar
1996-12-10  0:00             ` Tom Moran
1996-12-11  0:00               ` Robert Dewar
1996-12-18  0:00               ` Ted Dennison
1996-12-18  0:00                 ` Tom Moran
1996-12-23  0:00                   ` Robert Dewar
1996-12-09  0:00         ` Norman H. Cohen
1996-11-27  0:00 ` Slice and Unbounded String Robert Dewar
replies disabled

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