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.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5cd1cd5c3c820d2a X-Google-Attributes: gid103376,public From: Stuart Palin Subject: Re: Are "Pragma inline" and "is separate" compatible ? Date: 1998/12/02 Message-ID: <36652F1B.2B94@gecm.com>#1/1 X-Deja-AN: 417824277 Content-Transfer-Encoding: 7bit References: <3663E615.2F3@ddre.dk> Content-Type: text/plain; charset=us-ascii Organization: Marconi Electronic Systems Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-12-02T00:00:00+00:00 List-Id: 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