Skip to content

Instantly share code, notes, and snippets.

@youz
Created May 31, 2011 07:20
Show Gist options
  • Save youz/1000096 to your computer and use it in GitHub Desktop.
Save youz/1000096 to your computer and use it in GitHub Desktop.
https://gist.github.com/998414 の問題を修正
--- compile.l 2002-03-25 02:49:18 +0900
+++ compile_fix.l 2011-05-31 16:17:04 +0900
@@ -649,6 +649,9 @@
(defun compile-call (form)
(let ((f (assoc (car form) *macro-environment* :test #'eq)))
(cond ((null f)
+ (when (and (consp (car form))
+ (eq (caar form) 'lambda))
+ (push 'funcall form))
(dolist (f (cdr form))
(compile-form f))
(output-insn 'insn-call (car form) (- (length form) 1)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment