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-Thread: 103376,124f89c41e690cd3 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!news.net.uni-c.dk!dotsrc.org!news.dotsrc.org!not-for-mail Date: Thu, 10 Aug 2006 19:49:34 +0300 Subject: Re: Ada to Ada Pragma Export/Import From: "Martin Krischik" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 Newsgroups: comp.lang.ada References: <1155161131.024343.273760@b28g2000cwb.googlegroups.com> Content-Transfer-Encoding: 7bit Message-ID: User-Agent: Opera Mail/9.00 (Win32) Organization: SunSITE.dk - Supporting Open source NNTP-Posting-Host: 213.154.202.79 X-Trace: news.sunsite.dk DXC=YgW6`eB>am5@:6iQ9Q>ag7YSB=nbEKnk;lY5`=Xnj1S?S5daR30PdP5V:_8RJBabH=;O^i0GOe`^3ofe`J\FNoJ0HckNkZZ`Ze5 X-Complaints-To: staff@sunsite.dk Xref: g2news2.google.com comp.lang.ada:6156 Date: 2006-08-10T19:49:34+03:00 List-Id: Am 10.08.2006, 01:05 Uhr, schrieb AskeyAJ@gmail.com : > I need to deliver object files (coded in Ada) to another team who will > access the public routines in their Ada code. I cannot deliver the > package bodies (but can deliver the object files, the specs, and the > ALI files). For example, suppose I want do deliver the hello_pkg.o and > hello_pkg.ads from the code below. > > My assumption is that I need to export the Say_It procedure in the > spec, and then the other team would need to import this procedure into > their code. Is this correct? And what is the syntax required? I've > tried the following but can't figure it out. If the procedure/type/etc. pp. is mentioned in the spec then simple export is assumed and an explicit pragma is only needed when special - like C or Fortran compatibility - is needed. So you don't need pragma Export and it is better not to use it. Apart from that you are on the right track Martin -- Martin Krischik krischik@users.sourceforge.net