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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c348430b94ced675 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-09 10:08:18 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Exporting generic's and tagged types Date: 09 Apr 2001 12:47:48 -0400 Organization: NASA Goddard Space Flight Center Message-ID: References: <3AD155BF.E771B7E8@worldnet.att.net> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 986835735 27056 128.183.220.71 (9 Apr 2001 17:02:15 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 9 Apr 2001 17:02:15 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.6 Xref: supernews.google.com comp.lang.ada:6667 Date: 2001-04-09T17:02:15+00:00 List-Id: srini writes: > Some hopefully simple questions I cannot find answers for : > > a) Is there a way to make generic packages preinstantiated exported to > "C" for example? You can put a "pragma Export (C, ...)" in the generic package itself, so that when it is instantiated, the appropriate things are exported. Does that do what you want? One problem with this scheme is the C name. If you specify it explicitly in the pragma Export, you cannot instantiate the package twice (you'll get link time collisions). On the other hand, if you do not specify it explicitly, you have a compiler dependency. > b) Is there a way to export a set of packages that declare/define a > family of base and derived data types and algorithms on these. Not clear what you mean by "export" here; pragma Export does not apply to packages. Maybe you mean "automatically apply pragma Export to everything in this set of packages". No way to do that. Might be a good application for ASIS. -- -- Stephe