comp.lang.ada
 help / color / mirror / Atom feed
From: SPAM_Guard_kkrieser@ionet.net (Kevin Krieser)
Subject: Re: Help: pragma inline
Date: 1997/05/21
Date: 1997-05-21T00:00:00+00:00	[thread overview]
Message-ID: <5ltenh$dul@ionews.ionet.net> (raw)
In-Reply-To: 3381bff2.quantum@quantum.pc.my


 In message <3381bff2.quantum@quantum.pc.my> - "Adrian B.Y. Hoe"
<byHoe@QUANTUM.PC.MY> 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.





  parent reply	other threads:[~1997-05-21  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-20  0:00 Help: pragma inline Adrian B.Y. Hoe
1997-05-20  0:00 ` Robert Dewar
1997-05-21  0:00 ` Kevin Krieser [this message]
1997-05-21  0:00 ` Jeff Creem
1997-05-27  0:00   ` Tucker Taft
1997-05-29  0:00     ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox