comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: GNAT 3.14 NEW FEATURES LIST Current as of May 30th, 2001
Date: Sat, 30 Jun 2001 00:26:44 GMT
Date: 2001-06-30T00:26:44+00:00	[thread overview]
Message-ID: <3B3D1CB6.BEAFCF4@acm.org> (raw)
In-Reply-To: 3B3C86C7.6C780F67@easystreet.com

Al Christians wrote:
> 
> > NF-314-7910-004 Uniform behavior for Slice subprograms
> >
> > In packages Ada.Strings.Bounded/Ada.Strings.Unbounded, the Slice
> > function now returns with the bounds of the slice expressions,
> > rather than with a lower bound of 1.This was discussed in the ISO
> > WG9 ARG, and it was agreed that this was the preferable approach. This > change also improves the efficiency of these two functions.
> 
> Will that break much code written otherwise?

Hopefully this will make the results of Slice have the same bounds with
all compilers. As a test/example program, the PragmAda Reusable
Components provides strm_sub.adb, which has to go to some effort to work
properly regardless of the bounds returned by Slice. There is an AI to
provide this behavior, but at the moment I don't remember its number or
status.

Well written code should not make assumptions about the bounds, and so
will not be affected by this. Code that relies on GNAT returning a lower
bound of 1 will break with this version, and with at least one other
compiler.

-- 
Jeff Carter
"I wave my private parts at your aunties."
Monty Python & the Holy Grail



  parent reply	other threads:[~2001-06-30  0:26 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-29 12:33 GNAT 3.14 NEW FEATURES LIST Current as of May 30th, 2001 Soeren.Henssel-Rasmussen
2001-06-29 13:46 ` Al Christians
2001-06-29 14:44   ` Ted Dennison
2001-06-29 16:10     ` Thierry Lelegard
2001-06-30  0:26   ` Jeffrey Carter [this message]
2001-06-30  1:04     ` Al Christians
2001-06-29 14:13 ` Ted Dennison
2001-06-29 17:22 ` nickerson
2001-06-29 20:46   ` Al Christians
2001-06-29 20:49     ` Ted Dennison
2001-06-29 22:31       ` nickerson
2001-06-30  0:11         ` Larry Kilgallen
2001-07-02 21:16   ` Robert Dewar
2001-07-02 22:10     ` nickerson
2001-07-03 13:31       ` Ted Dennison
2001-07-03 20:20         ` nickerson
2001-06-29 22:53 ` nickerson
2001-06-30  2:06   ` Windows.Only.Vendors
2001-06-30 13:51   ` Simon Wright
2001-07-02 13:47   ` Ted Dennison
2001-07-03  2:06   ` Robert Dewar
2001-07-03 21:03     ` nickerson
replies disabled

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