Path: utzoo!mnetor!uunet!husc6!im4u!ut-sally!ut-emx!utep-vaxa!bernat From: bernat@utep-vaxa.UUCP (Dr. Bernat ) Newsgroups: comp.lang.lisp Subject: Compiling lexical closures Message-ID: <304@utep-vaxa.UUCP> Date: 2 May 88 16:28:55 GMT Organization: Univ. Texas at El Paso, EE & CS Lines: 20 Keywords: compile closures I am trying to compile a lexical closure in Franz Common LISP and keeping getting the "illegal function form" message. It seems to me that I should be able to compile closures. For example, (defun test (a) (function (lambda (x) (cons x a)))) (test 5) => returns a lexical closure (funcall (test 5) 6) => (6.5) as expected but (compile nil (test 5)) gives the error message Can anyone help? Thanks, Andrew Bernat CS Dept. U.Texas @ El Paso UUCP ...ut-sally!utep-vaxa!bernat BITNET BJ00@UTEP 915/747-5470