From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1d295367cf0b8c48 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!news.banetele.no!news.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: loop variant in SPARK ADA Date: Mon, 19 Sep 2005 15:23:02 +0200 Organization: Jacob's private Usenet server Message-ID: References: <1127121942.777976.45330@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: hugin.crs4.it Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: jacob-sparre.dk 1127136183 21292 156.148.71.67 (19 Sep 2005 13:23:03 GMT) X-Complaints-To: sparre@jacob-sparre.dk NNTP-Posting-Date: Mon, 19 Sep 2005 13:23:03 +0000 (UTC) User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:xevEZULVoYFLg9/7TpaAgrFoyiM= Xref: g2news1.google.com comp.lang.ada:4903 Date: 2005-09-19T15:23:02+02:00 List-Id: 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!"