comp.lang.ada
 help / color / mirror / Atom feed
* specification file ads problem
@ 2014-10-05 15:39 Stribor40
  2014-10-05 16:20 ` mockturtle
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Stribor40 @ 2014-10-05 15:39 UTC (permalink / 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?
    


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2014-10-07 18:39 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-05 15:39 specification file ads problem Stribor40
2014-10-05 16:20 ` 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

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