comp.lang.ada
 help / color / mirror / Atom feed
* Ada Packages
@ 2011-09-17  5:45 George
  2011-09-17  6:15 ` Jeffrey Carter
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: George @ 2011-09-17  5:45 UTC (permalink / raw)


Hi All,

I tried to build a basic package. My two files look like this:

File 1: basic_num_io.ads

package Basic_Num_IO is
  procedure Num_IO;
end Basic_Num_IO;

File 2: basic_num_io.adb

with text_io; use text_io;

package body Basic_Num_IO is
  procedure Num_IO is
    package Integer_InOut is new Integer_IO(integer);
    package Float_InOut is new Integer_IO(float);
    begin
      null;
    end Num_IO;
end Basic_Num_IO;

If I call gnat compile basic_num_io.ads I get the error message:

basic_num_io.ads:8:01: end of file expected, file can have only one 
compilation unit

What am I doing wrong? Where can I find it in the documentation?

Kind regards

George



^ permalink raw reply	[flat|nested] 10+ messages in thread
* ada packages
@ 2004-02-17 10:20 Kuba Malczak
  2004-02-17 11:10 ` Preben Randhol
  0 siblings, 1 reply; 10+ messages in thread
From: Kuba Malczak @ 2004-02-17 10:20 UTC (permalink / raw)


Hi i have one more question.
Could you tell mi if enywhere is something
like package browser.i want to browse functions
with comments about themn, now i must open some package file 
and look for function that i wantm, is any simpliest way ?
sory for lame question



^ permalink raw reply	[flat|nested] 10+ messages in thread
* ADA PACKAGES
@ 1996-06-11  0:00 Robert Adams
  0 siblings, 0 replies; 10+ messages in thread
From: Robert Adams @ 1996-06-11  0:00 UTC (permalink / raw)



Anything for an ADA programmer.  Looking for usefule packages 
and compilable tools.  Leave email at RAdams9348@gnn.com.  
Thanks.





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

end of thread, other threads:[~2011-09-17  7:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-17  5:45 Ada Packages George
2011-09-17  6:15 ` Jeffrey Carter
2011-09-17  6:16 ` J-P. Rosen
2011-09-17  7:18 ` Georg Maubach
2011-09-17  7:42   ` Simon Wright
2011-09-17  7:46   ` Georg Maubach
  -- strict thread matches above, loose matches on Subject: below --
2004-02-17 10:20 ada packages Kuba Malczak
2004-02-17 11:10 ` Preben Randhol
2004-02-17 11:55   ` Kuba Malczak
1996-06-11  0:00 ADA PACKAGES Robert Adams

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