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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7f8b2fd444c211b5 X-Google-Attributes: gid103376,public From: SPAM_Guard_kkrieser@ionet.net (Kevin Krieser) Subject: Re: Help: pragma inline Date: 1997/05/21 Message-ID: <5ltenh$dul@ionews.ionet.net>#1/1 X-Deja-AN: 242696284 References: <3381bff2.quantum@quantum.pc.my> Organization: N/A Reply-To: spam_guard_kkrieser@ionet.net Newsgroups: comp.lang.ada Date: 1997-05-21T00:00:00+00:00 List-Id: In message <3381bff2.quantum@quantum.pc.my> - "Adrian B.Y. Hoe" writes: :> :> function Has_Trail (T : Trail) return Boolean :> begin :> return T.Start_In; :> end Trail_Is_In; :> :> pragma Inline(Has_Trail); -- Line 193 :> :> ... :> :> :>OA gives a warning message on line 193: Pragma Inline may not occur :>after the subprogram body, ignoring pragma inline on this subp. :> :>Could anyone explain more about inline and whether the warning could :>affect the intention of pragma Inline? :> : Is this routine possibly declared in a package spec? If so, that is where you want to put the Pragma inline. Otherwise, you might put a function spec earlier in the code, and put the pragma inline there. --Because of a large amount of SPAM e-mail, especially following --postings on the Newsgroups, I have unfortunately had to --change my e-mail address in the message headers. Sorry.