Skip to content

Instantly share code, notes, and snippets.

@miyamuko
Created May 30, 2011 03:36
Show Gist options
  • Save miyamuko/998414 to your computer and use it in GitHub Desktop.
Save miyamuko/998414 to your computer and use it in GitHub Desktop.
#xyzzy の lambda マクロをコンパイルするとなんかおかしい
;; xl-critic でバイトコンパイルするとエラーになる原因は
;; destructuring-bind 内で使っている lambda マクロが原因?
;; clisp だと動くので xyzzy のどっかのバグ?
(defun test1 ()
(let ((a 1))
((lambda () a))))
;=> test1
(test1)
;=> 1
(compile 'test1)
;=> test1
(test1)
;=> 変数が定義されていません: a
(defun test2 ()
(let ((a 1))
(funcall #'(lambda () a))))
;=> test2
(test2)
;=> 1
(compile 'test2)
;=> test2
(test2)
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment