comp.lang.ada
 help / color / mirror / Atom feed
From: stefan-lucks@see-the.signature
Subject: Re: Strategies with SPARK which does not support exceptions
Date: Wed, 30 Jun 2010 10:17:45 +0200
Date: 2010-06-30T10:17:45+02:00	[thread overview]
Message-ID: <Pine.LNX.4.64.1006301005080.15419@medsec1.medien.uni-weimar.de> (raw)
In-Reply-To: <i0djn0$11a$1@munin.nbi.dk>

On Tue, 29 Jun 2010, Randy Brukardt wrote:

> Returning to the dark ages of programming (that is BE - Before Exceptions) 
> and reintroducing all of the problems of early C code just because of 
> inadequate tools seems like a horrible step backwards to me.

I agree that error returns in code that isn't statically checked is a 
first-class flight into the world of severe errors and bugs.

But for SPARK, if a subprogram can return an error code and you forget to 
handle the error code, SPARK will remind you -- your program will not pass 
the static verification. So the kind of errors introduced by error returns 
can easily be avoided in SPARK.

So long

Stefan

-- 
------ Stefan Lucks   --  Bauhaus-University Weimar  --   Germany  ------
               Stefan dot Lucks at uni minus weimar dot de
------  I  love  the  taste  of  Cryptanalysis  in  the  morning!  ------




      parent reply	other threads:[~2010-06-30  8:17 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-17 15:33 Strategies with SPARK which does not support exceptions Yannick Duchêne (Hibou57)
2010-06-17 17:11 ` Warren
2010-06-17 18:19   ` Yannick Duchêne (Hibou57)
2010-06-21 13:31     ` Warren
2010-06-21 14:10       ` Alexandre K
2010-06-17 19:54 ` Pascal Obry
2010-06-17 22:47   ` Peter C. Chapin
2010-06-18  6:07 ` Claude
2010-06-18  8:06 ` Phil Thornley
2010-06-18  8:49   ` Martin
2010-06-18 17:16     ` mockturtle
2010-06-18 21:51       ` Alexandre K
2010-06-22 17:01   ` Phil Clayton
2010-06-22 23:14 ` Claude
2010-06-23 16:22   ` Warren
2010-06-24  3:24     ` Claude
2010-06-28 13:14       ` Warren
2010-06-29  8:39         ` Stephen Leake
2010-06-29 20:05       ` Randy Brukardt
2010-06-29 20:49         ` Georg Bauhaus
2010-06-30  5:08         ` Simon Wright
2010-06-30  8:17         ` stefan-lucks [this message]
replies disabled

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