comp.lang.ada
 help / color / mirror / Atom feed
From: JP Thornley <jpt@diphi.demon.co.uk>
Subject: Re: SPARK and Interfaces.C
Date: Fri, 13 May 2005 20:40:05 +0100
Date: 2005-05-13T20:40:05+01:00	[thread overview]
Message-ID: <kecpj3CVKQhCJwnA@diphi.demon.co.uk> (raw)
In-Reply-To: 1116005688.002279.128010@g43g2000cwa.googlegroups.com

In article <1116005688.002279.128010@g43g2000cwa.googlegroups.com>,
ich_bin_elvis@hotmail.com writes
>Hi,
>
>Im trying to spark a program that uses Interfaces.C and
>Ada.Numerics.Elementary_Functions; I read in John Barnes book that
>there is a method callded shadowing that allows you to use these
>packages. I understand that you create a dummy package and uses this
>with the spark examiner. But i get an error when i try to examin the
>dummy package. Does anybody have any good examples how this is done??
>any article regarding multilanguage development and spark would be
>apriciated.
>
>Regrads
>Ronny
>

What errors are you getting? The following packages (based on the
examples in John's book) go through the Examiner without any errors.

(You have to add a couple of parent packages that aren't there at
present.)

Cheers,

Phil Thornley

-------------------------------------------------
package Interfaces is

end Interfaces;


package Interfaces.C is

   UCHAR_MAX : constant := 255;

   type unsigned_char is mod (UCHAR_MAX+1);

end Interfaces.C;






package Ada.Numerics is

end Ada.Numerics;



package Ada.Numerics.Elementary_Functions is

   function Sqrt(X : Float) return Float;
   function Log(X : Float) return Float;
   function Cos(X : Float) return Float;

end Ada.Numerics.Elementary_Functions;

-----------------------------------------------------



-- 
JP Thornley



  reply	other threads:[~2005-05-13 19:40 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 [this message]
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
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