comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthewjheaney@earthlink.net>
Subject: Re: Update_Element Spec. in Containers.Indefinite_Hashed_Maps
Date: Wed, 21 Dec 2005 03:21:48 GMT
Date: 2005-12-21T03:21:48+00:00	[thread overview]
Message-ID: <uslsnxhh7.fsf@earthlink.net> (raw)
In-Reply-To: 1135101609.527495.321500@g49g2000cwa.googlegroups.com

"Anh Vo" <anhvofrcaus@gmail.com> writes:

> The Update_Element procedure specification has two paramters, Position and
> Process as implemented in GNAT-GPL. The one in the LRM 2005 has three
> paramters, Container as the additional and first paramter. Which one is the
> right one?

The version with three parameters is correct.  You appear to have an older
compiler.

As was mentioned elsewhere on this thread, there is a delay (usually a few
weeks) between the time I change the GNAT sources at AdaCore, and the time the
changes migrate into the GCC tree.

Eventually I'll update the reference implementation at
<http://charles.tigris.org> , but for now maintenance of the GNAT
implementation is my highest priority.  The tigris site will also be a good
place to try out alternative implementations (incremental hashing comes to
mind).

Note that if you have an older version of GNAT, then it's not hard to modify
your copy of the container library sources to match what's in the latest RM
draft.  Just find the ada include directory in your distribution, fix the file
in which you're interested, and compile the modified sources with -gnatg.
(Would -a work too?)

If you need the latest container sources now, and you're unsure what to do,
just drop me a line and I can step you through the necessary changes.

-Matt

P.S. I just learned today that AI-391 was approved, which means you'll be able
to say:

declare
  package Vector_Types is new A.C.Vectors (IT, ET);
  type VT is new Vector_Types.Vector with null record;
  -- not necessary to override functions returning type Vector
begin

Ditto for type Set.  This allows one to use the "transitivity of visibility"
technique mentioned in the Ada83 Rationale for containers too.



  parent reply	other threads:[~2005-12-21  3:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-20 18:00 Update_Element Spec. in Containers.Indefinite_Hashed_Maps Anh Vo
2005-12-20 21:01 ` Randy Brukardt
2005-12-20 21:04 ` Georg Bauhaus
2005-12-20 21:15   ` Anh Vo
2005-12-21  3:21 ` Matthew Heaney [this message]
2005-12-21  6:03   ` Georg Bauhaus
2005-12-21 14:58     ` Matthew Heaney
2005-12-22 23:47   ` Anh Vo
replies disabled

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