comp.lang.ada
 help / color / mirror / Atom feed
From: srini <r.srinivasan@worldnet.att.net>
Subject: Re: Exporting generic's and tagged types
Date: Tue, 10 Apr 2001 01:13:13 GMT
Date: 2001-04-10T01:13:13+00:00	[thread overview]
Message-ID: <3AD3D96C.398911C6@worldnet.att.net> (raw)
In-Reply-To: ug0fiow97.fsf@gsfc.nasa.gov



Stephen Leake wrote:
> 
> 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.
> 
sounds like a problem to me........

> > 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.
> 

well. I have such a family of such algorithms and data structures. work
quite well as long as i am within the Ada world. Now there is some
necessity to provide these facilities to VB. It would appear that there
is no easy way to accomplish this. Too bad. COM might be the way to do
it but I was hoping to avoid that.

thanks anyway

> --
> -- Stephe



  reply	other threads:[~2001-04-10  1:13 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
2001-04-10  1:13   ` srini [this message]
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