comp.lang.ada
 help / color / mirror / Atom feed
From: David Trudgett <wpower@zeta.org.au.nospamplease>
Subject: Re: Charles container library usage examples
Date: Wed, 14 Sep 2005 16:39:48 +1000
Date: 2005-09-14T16:39:48+10:00	[thread overview]
Message-ID: <m3br2w885n.fsf@rr.trudgett> (raw)
In-Reply-To: 7tJVe.33732$d5.188919@newsb.telia.net

Bj�rn Persson <spam-away@nowhere.nil> writes:

>
> The Ada compiler can omit checks if it can prove that they will never
> fail. While even the C compiler can optimize away code that will never
> have any effect, I would think it's a lot more difficult to prove that
> a hand-coded run-time check is unnecessary when the compiler doesn't
> know what it's for.

Fair enough, that sounds plausible. Of course, if one were writing
checking code in C, for instance, one would probably surround it with
IFDEFs so it could be manually excluded after testing. Not as granular
and tidy, perhaps, as automatic suppression of redundant checks, but
similar, nonetheless.

Cheers,

David



-- 

David Trudgett
http://www.zeta.org.au/~wpower/

Omnis enim res, quae dando non deficit, dum habetur
     et non datur, nondum habetur, quomodo habenda est.

For if a thing is not diminished by being shared with others,
     it is not rightly owned if it is only owned and not shared.

Book I, Chapter 1 "De doctrina christiana"
"Corpus Christianorum", "Series latina", Vol. 32, p. 6, lines 10-11.
Written 397 AD by Saint Augustinus




  reply	other threads:[~2005-09-14  6:39 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
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 [this message]
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