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,5213a46ff8cb5bdc X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!q37g2000vbi.googlegroups.com!not-for-mail From: Phil Thornley Newsgroups: comp.lang.ada Subject: Re: SPARK parameter type error. Date: Mon, 8 Jun 2009 02:47:07 -0700 (PDT) Organization: http://groups.google.com Message-ID: <65bf6295-0f83-4a84-8d4b-8cbb89be513e@q37g2000vbi.googlegroups.com> References: <042da3b7-6571-49b2-926f-3a8a578437db@q14g2000vbn.googlegroups.com> NNTP-Posting-Host: 80.177.171.182 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1244454427 27030 127.0.0.1 (8 Jun 2009 09:47:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 8 Jun 2009 09:47:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q37g2000vbi.googlegroups.com; posting-host=80.177.171.182; posting-account=Fz1-yAoAAACc1SDCr-Py2qBj8xQ-qC2q User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6366 Date: 2009-06-08T02:47:07-07:00 List-Id: > Running spark on posix-file.ads results in many instances of: > > =A0 42 =A0 =A0 =A0 Error_Value =A0: out POSIX.Error.Error_t); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^ > *** =A0 =A0 =A0 =A0Semantic Error =A0 =A0:754: The identifier Error is ei= ther > undeclared or not > =A0 =A0 =A0 =A0 =A0 =A0visible at this point. This package must be both i= nherited > and > =A0 =A0 =A0 =A0 =A0 =A0withed to be visible here. > > What's going on? The SPARK language doesn't allow the optional (in Ada) parent name to be given - so just delete all the POSIX. prefixes and it will work. (SPARK insists that any entity can only have a single name - in this case Error.Error_t - and disallows POSIX.Error.Error_t). Cheers, Phil Thornley