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.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no 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 06:59:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!fr.usenet-edu.net!usenet-edu.net!enst.fr!not-for-mail From: Michal Nowak Newsgroups: comp.lang.ada Subject: Re: Placement of pragma Import Date: Sun, 08 Dec 2002 16:07:53 +0100 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <200212081123160930.0047D332@smtp-po.inetia.pl> <053001c29eaa$ad9b72f0$6500000a@dhoos> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7BIT X-Trace: avanie.enst.fr 1039359543 29990 137.194.161.2 (8 Dec 2002 14:59:03 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sun, 8 Dec 2002 14:59:03 +0000 (UTC) Return-Path: In-reply-to: <053001c29eaa$ad9b72f0$6500000a@dhoos> X-Mailer: Calypso Version 3.30.00.00 (3) Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.13 Precedence: bulk X-Reply-To: vinnie@inetia.pl List-Unsubscribe: , List-Id: comp.lang.ada mail<->news gateway List-Post: List-Help: List-Subscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:31551 Date: 2002-12-08T16:07:53+01:00 On 2002-12-08 at 05:12 David C. Hoos, Sr. wrote: >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. > >The fact that you're importing the implementation has nothing >whatever to do with the specification, so it should not >appear there. Do you mean something like this: ------------- SPEC --------------- package Import_Test is procedure Asm_Coded; end Import_Test; ---------------------------------- ------------- BODY --------------- package body Import_Test is pragma Import (Assembler, Asm_Coded, "donothing"); pragma Linker_Options ("nothing_asm.o"); end Import_Test; ---------------------------------- I thought about it also as it sounds like a good idea, but this will not compile. So it still remains in spec. - Michal -- ----------------------------------------------------------------- -- ___ _ -- / _ \ | | I Choose Ada: -- | |_| | ___| | _____ The Most Trusted Name in Software (TM) -- | _ | | __ | | __ | -- |_| |_| |_____|_ |_____|_ http://www.adaic.org/whyada/choose.html -- -- -----------------------------------------------------------------