comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <sparre@nbi.dk>
Subject: Re: loop variant in SPARK ADA
Date: Mon, 19 Sep 2005 15:23:02 +0200
Date: 2005-09-19T15:23:02+02:00	[thread overview]
Message-ID: <m2zmq98a4p.fsf@hugin.crs4.it> (raw)
In-Reply-To: 1127121942.777976.45330@f14g2000cwb.googlegroups.com

Constantin Porphyrogenete wrote:

> Couldn't find the newsgroup for SPARK.  Thought I'd try this one.

I think it is the appropriate newsgroup for SPARK questions, even if
it isn't mentioned explicitly in the charter.

> Read the book. It seems there is no way to assert a loop variant to
> help prove termination (I am thinking of the Eiffel loop variant).
>
> Is there any reason SPARK ADA doesn't have this?

I'm tempted to quote Larry Wall on this subject (altough he's talking
about Ada and not SPARK):

  "I remember being impressed with Ada because you could write an
   infinite loop without a faked up condition. The idea being that in
   Ada the typical infinite loop would normally be terminated by
   detonation."

Being more serious; I don't know why the designers of SPARK have made
that decision.

Greetings,

Jacob
-- 
"The point is that I am now a perfectly safe penguin!"




  reply	other threads:[~2005-09-19 13:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-19  9:25 loop variant in SPARK ADA Constantin Porphyrogenete
2005-09-19 13:23 ` Jacob Sparre Andersen [this message]
2005-09-19 15:40 ` Jeffrey Carter
2005-09-19 16:03   ` Georg Bauhaus
2005-09-19 22:22     ` Jeffrey Carter
2005-09-20  8:17       ` Georg Bauhaus
2005-09-20 17:15 ` Rod Chapman
2005-09-21  2:49   ` Constantin Porphyrogenete
2005-09-21 17:31     ` Jeffrey Carter
replies disabled

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