Created
September 3, 2011 04:43
-
-
Save bowbow99/1190576 to your computer and use it in GitHub Desktop.
#xyzzy labels をコンパイルすると泣ける
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; labels の lambda-list 内の init-form で同じ labels 式で定義したローカル | |
;; 関数を呼び出してると、コンパイルで挙動が変わる | |
(defun x () :global) | |
=> x | |
(defun test () | |
(labels ((x () :local) | |
(test-1 (&optional (val (x))) val)) | |
(test-1))) | |
=> test | |
(test) | |
=> :local | |
(compile 'test) | |
=> test | |
(test) | |
=> :global |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment