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,7b0188e023be40b6 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!g38g2000yqd.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: SPARK Examiner -- visibility of Ada.Strings.Unbounded (and probably lots of other packages) Date: Thu, 26 Mar 2009 08:13:32 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8c753bd7-3df6-418a-8cd7-342af6eadeff@g38g2000yqd.googlegroups.com> References: NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1238080412 32402 127.0.0.1 (26 Mar 2009 15:13:32 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 26 Mar 2009 15:13:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g38g2000yqd.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5307 Date: 2009-03-26T08:13:32-07:00 List-Id: On Mar 26, 3:50=A0pm, Tim Rowe wrote: > Now that a GPL version of SPARK Examiner has been announced, I suppose > this group will be getting a flood of queries on how to use it. Well, I > hope so, because that would indicate a large take-up -- good for > software as a whole, and presumably what Praxis HIS and AdaCore are > hoping for. > > So let me try to get in ahead of the flood. I'm trying to put my Ada > learning exercise into SPARK, and I'm using the evaluation version of > Examiner (and the gnat compiler). I have > =A0 =A0 with Ada.Strings.Unbounded; > at the start of a package file, and SPARK Examiner complains: > =A0 =A0 1 =A0with Ada.Strings.Unbounded; > =A0 =A0 =A0 =A0 =A0 =A0 ^1 > --- ( =A01) =A0Warning =A0 =A0 =A0 =A0 =A0 : =A01: The identifier Ada is = either > undeclared or not > =A0 =A0 =A0 =A0 =A0 =A0 visible at this point. > > I can't work out how to make Ada.Strings.Unbounded visible to examiner. > Could somebody point me to what I'm missing, please? > > Thanks! I don't think Ada.Strings.Unbounded is part of SPARK. SPARK is a *subset* of Ada that removes everything not statically provable. By definition, anything unbounded is not statically provable. I would even assume that SPARK forbids the entire Ada run-time library (i.e. package Ada and its children) but presumably provides a replacement library (perhaps a package SPARK?) -- Ludovic Brenta.