comp.lang.ada
 help / color / mirror / Atom feed
* Non private & private Import
@ 2000-12-16 13:48 Antonio Vargas
  2000-12-16 17:11 ` Robert Dewar
  0 siblings, 1 reply; 2+ messages in thread
From: Antonio Vargas @ 2000-12-16 13:48 UTC (permalink / raw)



Hi.

What are the advantages/disadvantages of

--  First version

package Imp_Xfuncs is
   function Example (num : C.int) return C.int;
   pragma Import (C, Example, "the_example");     -- Non private "Import"
end Imp_Xfuncs;


--  Second version

package Imp_Xfuncs is
   function Example (num : C.int) return C.int;
private
   pragma Import (C, Example, "the_example");   -- Private "Import"
end Imp_Xfuncs;

Thanks in advance 

Antonio Vargas



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

end of thread, other threads:[~2000-12-16 17:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-16 13:48 Non private & private Import Antonio Vargas
2000-12-16 17:11 ` Robert Dewar

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