comp.lang.ada
 help / color / mirror / Atom feed
From: "Ludovic Brenta" <ludovic@ludovic-brenta.org>
Subject: Re: of possible interest
Date: 8 May 2006 00:26:06 -0700
Date: 2006-05-08T00:26:06-07:00	[thread overview]
Message-ID: <1147073166.032155.63100@v46g2000cwv.googlegroups.com> (raw)
In-Reply-To: <1147040746.9037.12.camel@localhost.localdomain>

Georg Bauhaus writes :
> On Sun, 2006-05-07 at 22:37 +0200, Frederic Praca wrote:
>> Dennis Lee Bieber <wlfraed@ix.netcom.com> a écrit :
>>
>>> 	begin
>>> 		dummy := some_function(some_argument);
>>> 		--	dummy is never made use of; effectively
>>> ignored end;
>>
>> Yes but in this case, everybody knows you explicitly ingore the
>> return value, you didn't forget it by mistake.
>
> Does anyone know how relevant this is in practice,
> given in mistakes per product, or increased development
> cost?

Not very relevant IMHO, because Ada programmers, knowing that return
values cannot be ignored, design functions in such a way that the
returned value is sufficiently interesting that the caller will not
want to ignore it. In the few cases I've seen where the value is
actually ignored, there was always a comment explaining why, and this
was usually a symptom of poor design of the function.

-- 
Ludovic Brenta.




  reply	other threads:[~2006-05-08  7:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-04 19:05 of possible interest Marco
2006-05-04 19:26 ` Ludovic Brenta
2006-05-04 23:30   ` Georg Bauhaus
2006-05-05  2:49     ` Ed Falis
2006-05-05 14:40     ` Ludovic Brenta
2006-05-07  7:46   ` Nasser Abbasi
2006-05-07 11:50     ` Larry Kilgallen
2006-05-07 12:54     ` Ludovic Brenta
     [not found]       ` <0gcs52lejunc5qar09mf2mng2kg8kumedk@4ax.com>
2006-05-07 20:37         ` Frederic Praca
2006-05-07 22:25           ` Georg Bauhaus
2006-05-08  7:26             ` Ludovic Brenta [this message]
2006-05-09  0:41             ` Robert A Duff
2006-05-11 22:25               ` David Emery
2006-05-12 15:45                 ` Pascal Obry
replies disabled

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