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: a07f3367d7,48872198fdca5efd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!p36g2000vbn.googlegroups.com!not-for-mail From: Rod Chapman Newsgroups: comp.lang.ada Subject: Re: SPARK - refactoring and refinement of own state Date: Thu, 20 Aug 2009 01:06:35 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4cc6e9da-9a4a-4a9a-8748-4c5c4a3e9362@z28g2000vbl.googlegroups.com> <4a8cfd47$0$30230$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: 217.205.167.137 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1250755596 10124 127.0.0.1 (20 Aug 2009 08:06:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 20 Aug 2009 08:06:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p36g2000vbn.googlegroups.com; posting-host=217.205.167.137; posting-account=HCzrEgkAAABSfGsTnv-u5wET6EzuneVi User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7902 Date: 2009-08-20T01:06:35-07:00 List-Id: On Aug 20, 8:37=A0am, Georg Bauhaus wrote: > Maciej Sobczak wrote: > > However, the examiner says: > > > =A0 =A04 =A0package body Greetings > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^ > > *** =A0 =A0 =A0 =A0Syntax Error =A0 =A0 =A0: No DOTTED_SIMPLE_NAME can = start with > > reserved > > =A0 =A0 =A0 =A0 =A0 =A0word "BODY". > > FWIW, there is a rule about Ada with-ing versus SPARK with-ing > that explains, IIRC, that the #clauses must go before > the package spec, in SPARK, not just the body. It's in the > SPARK book somewhere. Yeah - the "inherit" anno always goes on the spec. In this case the Examiner see the "inherit" and then expects to see a package spec, so then objects when the word "body" appears. We'll see if we can generate a better error message for this case. - Rod, SPARK Team