From: Kevin Gallagher
Subject: Re: 2 simple commonlisp questions
Date: 
Message-ID: <3lv2mo$v85@kernighan.cs.umass.edu>
Amy Caplan <ยทยทยทยท@well.sf.ca.us> writes:
>1. If one does (declare (inline func)), is this only applicable to the
>current file / can an inline declaration *ever* have any effect across
>files?

In order for a function's definition to be saved by the compiler so
that it can be inlined, you must proclaim (or declaim) it inline.
Simply declaring a function to be inline at the place where you use it
is not sufficient.  The global declaration is then in effect for
subsequent files unless you turn it off by proclaiming it notinline.

So a typical usage would be:

(declaim (inline foo))

(defun foo ...)

cf. CLtL-II pp. 229-30 for more details.


Kevin Gallagher