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,cbe0aa3013785791 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!r37g2000yqd.googlegroups.com!not-for-mail From: xorque Newsgroups: comp.lang.ada Subject: Re: Minor SPARK problem concerning 'redundant' with clauses. Date: Thu, 11 Jun 2009 01:45:30 -0700 (PDT) Organization: http://groups.google.com Message-ID: <86079723-b7d5-4fcd-9040-82f85186c696@r37g2000yqd.googlegroups.com> References: <445038cd-3a8b-4222-a49b-3b64d4fc3c72@r3g2000vbp.googlegroups.com> NNTP-Posting-Host: 81.86.41.187 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1244709931 32609 127.0.0.1 (11 Jun 2009 08:45:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 11 Jun 2009 08:45:31 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r37g2000yqd.googlegroups.com; posting-host=81.86.41.187; posting-account=D9GNUgoAAAAmg7CCIh9FhKHNAJmHypsp User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.7) Gecko/2009030814 Iceweasel/3.0.9 (Debian-3.0.9-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6429 Date: 2009-06-11T01:45:30-07:00 List-Id: On Jun 10, 9:55=A0pm, britt.snodgr...@gmail.com wrote: > I'm getting a bit rusty with my SPARK, but I think the with clause can > be moved to the package body (only the body) while the inherit > annotation remains in the package spec. =A0We always build with the - > gnatwa switch to enable all optional warnings and I think this warning > was easy to fix by moving the "with" to the body. I see, thanks. I wasn't aware that 'with' and 'inherit' could be distinct like that.