comp.lang.ada
 help / color / mirror / Atom feed
* Re: Global scope for instantiated generic package? - Solved!
@ 2010-09-06  1:31 Trogdor
  2010-09-06  9:03 ` Georg Bauhaus
  0 siblings, 1 reply; 2+ messages in thread
From: Trogdor @ 2010-09-06  1:31 UTC (permalink / raw)


Thanks to all who read and responded.  I think I figured it out.

1) My first problem was getting the correct name of the package.  
All of my texts (which turned out to be for Ada 83) used 
"Integer_IO" as the generic package in their examples.  Under GNAT 
the package is Ada.Text_IO.Integer_IO.  Your examples got me 
thinking on those lines and I examined the package specs to get the 
correct name.  I have also ordered newer Ada 95 books :-).

2) There was an issue with nesting packages.  I was able to 
instantiate BigInt within my existing package and then refference it 
with BigInt.put, etc.  It may also be possible to make it directly 
visable by creating a packge spec which instantiates the generic, 
but does not use a "package name is".  Gnat appears to have done 
that.  But I am satisfied with the first method.

3) I am now going through all of GNAT's package specs to see what 
treasures might be hidden there.  If nothing else, that should get 
me good Ada Karma. :-)

Thanks again to all.



-- 
--------------------------------- --- -- -
Posted with NewsLeecher v3.9 Final
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -




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

end of thread, other threads:[~2010-09-06  9:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-06  1:31 Global scope for instantiated generic package? - Solved! Trogdor
2010-09-06  9:03 ` Georg Bauhaus

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