comp.lang.ada
 help / color / mirror / Atom feed
From: Stuart Palin <stuart.palin@gecm.com>
Subject: Re: Are "Pragma inline" and "is separate" compatible ?
Date: 1998/12/02
Date: 1998-12-02T00:00:00+00:00	[thread overview]
Message-ID: <36652F1B.2B94@gecm.com> (raw)
In-Reply-To: 3663E615.2F3@ddre.dk

Hans Marqvardsen wrote:
> 
> I have a package PAK which contains a procedure SEP which is separate.
> 
> Now I would like to inline SEP. Is that possible?

It is possible (in general terms - don't know about your specific
compiler), but the body of the inlined procedure must be compiled before
the unit that uses it (otherwise the compiler does not know what code to
inline).

In your example this would mean compiling the separate procedure SEP
before the procedure MAIN.

--
Stuart Palin
Consultant Engineer
Avionic Systems Division (Rochester)
Marconi Electronic Systems Ltd




      reply	other threads:[~1998-12-02  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-01  0:00 Are "Pragma inline" and "is separate" compatible ? Hans Marqvardsen
1998-12-02  0:00 ` Stuart Palin [this message]
replies disabled

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