From: Phil Thornley <phil.jpthornley@googlemail.com>
Subject: Re: SPARK examiner visibility problem
Date: Mon, 14 Sep 2009 01:16:26 -0700 (PDT)
Date: 2009-09-14T01:16:26-07:00 [thread overview]
Message-ID: <bdfa412c-08aa-4392-ae21-696d199cad0c@j19g2000yqk.googlegroups.com> (raw)
In-Reply-To: e58e0c5a-5206-4d6e-bb3b-1213e3496a9f@c28g2000yqd.googlegroups.com
On 14 Sep, 07:28, Ludovic Brenta <ludo...@ludovic-brenta.org> wrote:
> Laurie Dillon wrote on comp.lang.ada:
>
> > The examiner has no problem with this package (the body carries a
> > #hide Std_IO annotation). But 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
next prev parent reply other threads:[~2009-09-14 8:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-13 22:47 SPARK examiner visibility problem Laurie Dillon
2009-09-14 0:32 ` Britt
2009-09-14 4:26 ` Laurie Dillon
2009-09-14 6:28 ` Ludovic Brenta
2009-09-14 8:16 ` Phil Thornley [this message]
2009-09-14 7:40 ` Phil Thornley
2009-09-14 16:12 ` Phil Thornley
2009-09-14 22:44 ` Laurie Dillon
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox