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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,45fb44c5bf432111,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: Mon, 30 Aug 2010 08:12:19 -0500 From: Trogdor Newsgroups: comp.lang.ada Subject: Global scope for instantiated generic package? X-Newsreader: NewsLeecher v3.9 Final (http://www.newsleecher.com) X-Antivirus: avast! (VPS 100829-1, 08/29/2010), Outbound message X-Antivirus-Status: Clean Message-ID: <5vWdnTd5Lf6uM-bRnZ2dnUVZ_oidnZ2d@giganews.com> Date: Mon, 30 Aug 2010 08:12:19 -0500 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-L4vUd1wvgjXXspUxxn3MosHzvjsDqwUkBBoK3BCi9f63bK8GpBH5yKbivl8qDEIulnZ1369gPKc0AQw!bVwfj/lGNb/f+YQBhlXPZdWWL7jv2lE2YoVQ+bxhZJ6cooFX8LRHPaq9jD5wl/Rl1Gh8zndLi+I= 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:13850 Date: 2010-08-30T08:12:19-05:00 List-Id: I wish to manipulate very large integers with values in the trillions. This would require a 64 bit integer type, so to maintain portability I specify a new type using range and let the compiler do the right thing. type BigInt is range 1..10_000_000_000_000; I then wish to get and put these values, so I instantiate Integer_IO. package BigInt_IO is new integer_IO(BigInt); My program consists of three parts: the main body, a package spec and a package body (the package containing all the subprograms and functions). 1) Is this the way to do it, or is there a preffered way? 2) Where, speciffically, do I place the above two lines (and the associated "with" line) so that I can BigInt_io.get from the main body and the package subprograms as well? So far, every place I have tried has offended the compiler. And my text books have been of little help (I have more on order). Thanks for the help! -- --------------------------------- --- -- - Posted with NewsLeecher v3.9 Final Web @ http://www.newsleecher.com/?usenet ------------------- ----- ---- -- -