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,a094903f87897fa4 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!j19g2000yqk.googlegroups.com!not-for-mail From: Phil Thornley Newsgroups: comp.lang.ada Subject: Re: SPARK examiner visibility problem Date: Mon, 14 Sep 2009 01:16:26 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <8d72d20b-489b-4494-9b13-1b00ee902850@j4g2000yqa.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 1252916186 30191 127.0.0.1 (14 Sep 2009 08:16:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 14 Sep 2009 08:16:26 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j19g2000yqk.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; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8320 Date: 2009-09-14T01:16:26-07:00 List-Id: On 14 Sep, 07:28, Ludovic Brenta wrote: > Laurie Dillon wrote on comp.lang.ada: > > > The examiner has no problem with this package (the body carries a > > #hide Std_IO annotation). =A0But when I try to examine a package spec > > (or body) that inherits Std_IO, I get semantic errors at every > > reference to Std_IO.stdin and Std_IO.stdout. > > From a past discussion here on comp.lang.ada, I vaguely remember that > #hide annotations must be in the spec, not in the body, to take > effect. > > -- > Ludovic Brenta. You can hide any of: 1. the private part of a spec (not the visible part) the --# hide follows the 'private' keyword 2. a package body (all of it) the --# hide follows the 'is' keyword. 3. a subprogram body ditto 4. the initialisation part of a package body the --# hide follows the 'begin' keyword. Cheers, Phil