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,9fdb4e673a488b12 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-08 10:49:20 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc02.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Placement of pragma Import References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc02 1039373359 12.234.13.56 (Sun, 08 Dec 2002 18:49:19 GMT) NNTP-Posting-Date: Sun, 08 Dec 2002 18:49:19 GMT Organization: AT&T Broadband Date: Sun, 08 Dec 2002 18:49:19 GMT Xref: archiver1.google.com comp.lang.ada:31557 Date: 2002-12-08T18:49:19+00:00 List-Id: > In my opinion, the best place to put it would be in the package > body. After all, what you're declaring with the pragma Import > is the _implementation_ of the procedure Asm_Coded. "If a completion is a pragma Import, then it shall appear in the same declarative part, package specification, ... as the declaration." RM B.1(22) "The convention represents the calling convention..." ARM B.1(30) A caller, which has access only to the spec, clearly needs to know the calling convention.