[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Constant Functions
- To: Rob.MacLachlan@WB1.CS.CMU.EDU, Gail Zacharias <email@example.com>
- Subject: Re: Constant Functions
- From: Charles Hornig <Hornig@ALDERAAN.SCRC.Symbolics.COM>
- Date: Mon, 9 May 88 10:51 EDT
- Cc: firstname.lastname@example.org, email@example.com, ELIOT@cs.umass.edu, firstname.lastname@example.org
- In-reply-to: The message of 7 May 88 13:59 EDT from Rob.MacLachlan@WB1.CS.CMU.EDU
The approach we have taken at Symbolics is that all function references
are assumed to be "constant" unless they are declared (or proclaimed) to
be NOTINLINE. The idea is that failing to indirect through the function
cell is a minor form of inlining. This has several advantages:
The "constant" case is by far the most common in normal code. Avoiding
a user declaration here is very important.
We use an existing declaration which already has the desired meaning.
Declaring a function NOTINLINE is the standard way to make it traceable
and (as we see it) replaceable.
The environment does not have to carry this too far. Our environment
supports redefinition at the user level (compiling a new definition
from the editor) even when it doesn't at the code level
(SETF (SYMBOL-FUNCTION ...) ...).