"Denis Papathanasiou" <[EMAIL PROTECTED]> writes: > I'm not sure if this is a Lisp thing or an issue specific to CMUCL, > but when I compile this macro and try to include the resulting x86f > file into a larger binary (i.e. using 'cat'), I see this: "Error in > batch processing: Cannot dump objects of type FUNCTION into fasl > files."
Your macro expands to source code which contains a literal function object in it. Instead, you want to expand into source code which contains something which will retrieve the function object. The usual error is to provide a default for a parameter which ends up being unquoted such as #'foo, where you should actually provide '#'foo. (You could also provide ''foo as the default). Best, Christophe