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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b36bbdc1595d0665 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!x25g2000yqj.googlegroups.com!not-for-mail From: Ada novice Newsgroups: comp.lang.ada Subject: Re: SPARK code samples Date: Wed, 11 Aug 2010 11:00:53 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: C8888F59.14CCDC%yaldnif.w@blueyonder.co.uk <1b7d07a3-563c-4c0e-93db-e30a94e32932@w30g2000yqw.googlegroups.com> NNTP-Posting-Host: 193.11.22.91 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1281549653 3508 127.0.0.1 (11 Aug 2010 18:00:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 11 Aug 2010 18:00:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x25g2000yqj.googlegroups.com; posting-host=193.11.22.91; posting-account=Rr9I-QoAAACS-nOzpA-mGxtAlZ46Nb6I User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 (.NET CLR 3.5.30729),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:13138 Date: 2010-08-11T11:00:53-07:00 List-Id: On Aug 11, 7:45=A0pm, "(see below)" wrote: > On 11/08/2010 18:39, in article > bbc93c1c-9e12-4682-912d-9ff961c3a...@p7g2000yqa.googlegroups.com, "Ada > > novice" wrote: > > On Aug 11, 7:32=A0pm, Mark Lorenzen wrote: > > >> I also think there is a risk of getting stuck with SPARK if you try to > >> design a SPARK program with Ada in mind. You constantly bump into a > >> useful feature of Ada that is not in SPARK (discriminated types, array > >> slicing etc.) and you think "why the h... isn't that a part of SPARK > >> when it's so easy to do in Ada?". So it's probably a way of tuning > >> your mindset from "Ada with restrictions" into SPARK. > > > So you're saying not to think in terms of Ada when approaching SPARK? > > I have yet to lay my hands on a copy of Barnes' SPARK book to learn > > SPARK syntax and I can understand that SPARK is not just Ada with some > > annotations. > > Yebbut. It is. > > -- > Bill Findlay > chez blueyonder.co.uk In this article: "The Exterminators---A small British firm shows that software bugs aren't inevitable" available at http://spectrum.ieee.org/computing/software/the-exterminators/0 it is mentioned, I quote: "that the two-step translation--from English to Z and from Z to Spark--lets engineers keep everything in mind" I haven't yet personally written any programs in SPARK but does one has necessarily to understand the Z language in order to use SPARK? I recall reading somewhere that Barnes's book doesn't discuss the Z language (I might be wrong though). Thanks YC