comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: Exporting generic's and tagged types
Date: 09 Apr 2001 12:47:48 -0400
Date: 2001-04-09T17:02:15+00:00	[thread overview]
Message-ID: <ug0fiow97.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: 3AD155BF.E771B7E8@worldnet.att.net

srini <r.srinivasan@worldnet.att.net> 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



  reply	other threads:[~2001-04-09 16:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-08  3:26 Exporting generic's and tagged types srini
2001-04-09 16:47 ` Stephen Leake [this message]
2001-04-10  1:13   ` srini
2001-04-13 16:18     ` Tucker Taft
2001-04-13  6:13   ` Simon Wright
2001-04-13 22:51     ` Robert A Duff
replies disabled

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