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=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d512bc9ad511cd93 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-16 09:20:09 PST Path: supernews.google.com!sn-xit-02!supernews.com!newsfeed.mesh.ad.jp!europa.netcrusader.net!207.172.3.44!feed2.news.rcn.net!rcn!cpk-news-hub1.bbnplanet.com!news.gtei.net!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Robert Dewar Newsgroups: comp.lang.ada Subject: Re: Non private & private Import Date: Sat, 16 Dec 2000 17:11:24 GMT Organization: Deja.com Message-ID: <91g7np$55i$1@nnrp1.deja.com> References: <976978132.359056@tubarao.ip.pt> NNTP-Posting-Host: 205.232.38.41 X-Article-Creation-Date: Sat Dec 16 17:11:24 2000 GMT X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; U) X-Http-Proxy: 1.0 x73.deja.com:80 (Squid/1.1.22) for client 205.232.38.41 X-MyDeja-Info: XMYDJUIDrobert_dewar Xref: supernews.google.com comp.lang.ada:3204 Date: 2000-12-16T17:11:24+00:00 List-Id: In article <976978132.359056@tubarao.ip.pt>, antonio.vargas@clix.pt wrote: > > Hi. > > What are the advantages/disadvantages of <> They are equivalent semantically. So choose on the basis of whether you think it is part of the public interface or not. In the specific examples you gave, there were no comments, which seems a bad thing. Given the lack of comments, you have to prefer the public import, since at least that gives some information about what on earth the subprogram does. The private version is completely useless since it gives the client absolutely not the slightest clue as to what the subprogram is for. In either case, comments would be a highly desirable addition, and would focus your attention on the issue you are raising, which is whether or not it is part of the public interface that the subprogram is imported and has convention C. If you want to be really persnickety, it SHOULD be part of the interface that the convention is C, because this is semantically visible, but in practice it is very unlikely to make a difference. For most purposes anyway it makes sense to have the import be right next to the subprogram declaration. Sent via Deja.com http://www.deja.com/