comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthewjheaney@earthlink.net>
Subject: Re: Charles container library usage examples
Date: Sat, 10 Sep 2005 17:58:56 GMT
Date: 2005-09-10T17:58:56+00:00	[thread overview]
Message-ID: <uwtlo6bz2.fsf@earthlink.net> (raw)
In-Reply-To: 87k6hposf1.fsf@ludovic-brenta.org

Ludovic Brenta <ludovic@ludovic-brenta.org> writes:

> Yes.  I read about that in John Barnes' "Rationale for Ada 2005" (in
> "Ada User Journal", volume 26, number 1, page 53).  This apparently
> requires the introduction of some run-time checks.  Do Ada.Containers
> try to avoid such run-time checks?  How?

Those checks aren't done by the containers themselves.  They're done by
a lower-level part of the run-time (I think related to derivation and
streaming attributes, but I'm not really sure).  I think Gary Dismukes
implemented that part of the GNAT run-time, so he'd be the guy to ask.
Javier Miranda might know too.


> And is there a way (pragma Restrictions?) to forbid these run-time
> checks?

I'm not sure.  My knowledge of the Ada 2005 language revision is rather
parochial, as you can imagine...

Draft 13 of Ada Amendment 1 was just released, so lately I've been busy
synchronizing the GCC sources with what's described in the draft.  I've
also been adding checks (some controlled by pragma Assert, some not) to
detect dangling cursors, per the CLA thread a few weeks ago.



  reply	other threads:[~2005-09-10 17:58 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-03  2:38 Charles container library usage examples David Trudgett
2005-09-03  5:15 ` Matthew Heaney
2005-09-03  9:45   ` Simon Wright
2005-09-04  6:25     ` David Trudgett
2005-09-05 11:28       ` Georg Bauhaus
2005-09-04  0:26   ` David Trudgett
2005-09-04  9:49     ` Matthew Heaney
2005-09-06  3:01       ` David Trudgett
2005-09-06 16:22         ` Jeffrey Carter
2005-09-07  0:15         ` Matthew Heaney
2005-09-04 17:19     ` Ludovic Brenta
2005-09-06  3:01       ` David Trudgett
2005-09-06  5:08         ` Ludovic Brenta
2005-09-06  6:46           ` David Trudgett
2005-09-06  7:26             ` Ludovic Brenta
2005-09-24  0:05               ` Randy Brukardt
2005-09-09 14:57         ` James Alan Farrell
2005-09-10  7:38           ` David Trudgett
2005-09-10 14:55             ` Matthew Heaney
2005-09-10 15:26               ` Ludovic Brenta
2005-09-10 17:58                 ` Matthew Heaney [this message]
2005-09-12  0:24               ` Robert A Duff
2005-09-11 10:52             ` Georg Bauhaus
2005-09-11 21:14               ` David Trudgett
2005-09-13 23:41                 ` Björn Persson
2005-09-14  6:39                   ` David Trudgett
2005-09-12  0:21             ` Robert A Duff
2005-09-12  0:57               ` David Trudgett
2005-09-12  1:01                 ` Robert A Duff
replies disabled

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