comp.lang.ada
 help / color / mirror / Atom feed
From: JP Thornley <jpt@diphi.demon.co.uk>
Subject: Re: SPARK and Interfaces.C
Date: Mon, 23 May 2005 14:30:39 +0100
Date: 2005-05-23T14:30:39+01:00	[thread overview]
Message-ID: <jzj4YsA$rdkCJw85@diphi.demon.co.uk> (raw)
In-Reply-To: 1116841716.694148.260010@g43g2000cwa.googlegroups.com

In article <1116841716.694148.260010@g43g2000cwa.googlegroups.com>, 
ich_bin_elvis@hotmail.com writes
>           Examining the specification of package Elementary_Functions
>...
>
>   1  package Ada.Numerics.Elementary_Functions is
>                  ^
>***        Semantic Error    :  1: The identifier Numerics is either
>undeclared
>or
>           not visible at this point.

One of the more unexpected rules in SPARK is that a child package has to 
explicitly inherit its parent (although no with clause is required).

Add
--# inherit Ada.Numerics;
to the Elementary_Functions child and you should be OK.

Cheers,

Phil

-- 
JP Thornley



  reply	other threads:[~2005-05-23 13:30 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-13 17:34 SPARK and Interfaces.C ich_bin_elvis
2005-05-13 19:40 ` JP Thornley
2005-05-14 12:15   ` Rod Chapman
2005-05-14 13:31     ` Martin Dowie
2005-05-14 15:41       ` Rod Chapman
2005-05-17 10:55     ` ich_bin_elvis
2005-05-17 14:40       ` Rod Chapman
2005-05-19  8:12         ` ich_bin_elvis
2005-05-19  8:46         ` ich_bin_elvis
2005-05-19  9:01           ` Rod Chapman
2005-05-19 10:25             ` ich_bin_elvis
2005-05-21 22:52               ` JP Thornley
2005-05-23  9:48                 ` ich_bin_elvis
2005-05-23 13:30                   ` JP Thornley [this message]
2005-05-23 15:10                     ` JP Thornley
2005-05-24  8:57                       ` ich_bin_elvis
2005-05-24 10:36                         ` JP Thornley
2005-05-24 20:34                           ` ich_bin_elvis
2005-05-25  7:54                             ` JP Thornley
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox