From: Stribor40 <ikamzic@gmail.com>
Subject: specification file ads problem
Date: Sun, 5 Oct 2014 08:39:35 -0700 (PDT)
Date: 2014-10-05T08:39:35-07:00 [thread overview]
Message-ID: <831a97d3-fa0b-49d9-980b-46e7eb12c1ee@googlegroups.com> (raw)
I am trying to put this in spec file...
***********************************************************
generic
type myType is array (1 ..N-1) of String (1..N);
N : Integer;
package myPackage is
function tt (a : in String) return myType;
end Neighbours;
************************************************************
Then in body.....
package body myPackage is
myNewType : myType;
function tt (a : in String) return myType is
begin
--
--
return myNewType;
end tt;
end myPackage;
*****************************************************************************
actual file that i compile and use to test this,,,
with Ada.Text_IO, Ada.Command_Line, myPackage;
procedure testing is
begin
Null;
end testing;
***************************************************************************
I am getting all these type errors..what am i doing wrong here? How do i spec file specify function return type when my spec file doesnt know about it?
next reply other threads:[~2014-10-05 15:39 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-05 15:39 Stribor40 [this message]
2014-10-05 16:20 ` specification file ads problem mockturtle
2014-10-06 21:34 ` Adam Beneschan
2014-10-05 16:29 ` AdaMagica
2014-10-05 16:32 ` Simon Wright
2014-10-05 17:06 ` Online conceptual/tutorial material for Ada, was: " Simon Clubley
2014-10-05 18:44 ` Niklas Holsti
2014-10-05 19:53 ` Peter Chapin
2014-10-06 7:55 ` Simon Wright
2014-10-06 11:08 ` Peter Chapin
2014-10-06 12:13 ` G.B.
2014-10-06 13:07 ` Peter Chapin
2014-10-06 13:40 ` J-P. Rosen
2014-10-06 22:30 ` Simon Clubley
2014-10-07 18:39 ` Peter Chapin
2014-10-06 8:12 ` Jacob Sparre Andersen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox