From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,FREEMAIL_FROM, PLING_QUERY autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c1e17b3da996e8f8,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 05 Sep 2010 20:31:19 -0500 From: Trogdor Newsgroups: comp.lang.ada Subject: Re: Global scope for instantiated generic package? - Solved! X-Newsreader: NewsLeecher v3.9 Final (http://www.newsleecher.com) X-Antivirus: avast! (VPS 100905-1, 09/05/2010), Outbound message X-Antivirus-Status: Clean Message-ID: Date: Sun, 05 Sep 2010 20:31:19 -0500 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-ow3ErmSb5N8aPqtOc75Ms5jgei44pArot2tyKIyVasbqvKc3Z7qZkjZYa1RV3bSxFfTUktFgZvPbrv+!rgY3vb7/w703bd1RN77lQSKh3wGY+2eEFLwluJ8S0SZAksoN5+8gxctoW1QeFe88K5NlgYRD7AE= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Xref: g2news1.google.com comp.lang.ada:13955 Date: 2010-09-05T20:31:19-05:00 List-Id: 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 ------------------- ----- ---- -- -