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 18:14:04 PST Path: supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!europa.netcrusader.net!204.127.161.3!wn3feed!worldnet.att.net!135.173.83.71!wnfilter1!worldnet-localpost!bgtnsc07-news.ops.worldnet.att.net.POSTED!not-for-mail Message-ID: <3AD3D96C.398911C6@worldnet.att.net> From: srini X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Exporting generic's and tagged types References: <3AD155BF.E771B7E8@worldnet.att.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 10 Apr 2001 01:13:13 GMT NNTP-Posting-Host: 12.77.88.178 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc07-news.ops.worldnet.att.net 986865193 12.77.88.178 (Tue, 10 Apr 2001 01:13:13 GMT) NNTP-Posting-Date: Tue, 10 Apr 2001 01:13:13 GMT Organization: AT&T Worldnet Xref: supernews.google.com comp.lang.ada:6681 Date: 2001-04-10T01:13:13+00:00 List-Id: Stephen Leake wrote: > > 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. > 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