Created
February 5, 2020 06:42
-
-
Save y2q-actionman/8e1083f930b280b151417106b0d3a05a to your computer and use it in GitHub Desktop.
Uninterned symbol に flet してそれを呼ぶ
This file contains hidden or 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
(in-package :cl-user) | |
;;; これは、二回出てくる `#:hello' が別のシンボルなので、エラーになる。 | |
;; (flet ((#:hello () "Hello, World!")) | |
;; (#:hello)) | |
;; ; => Evaluation aborted on #<undefined-function @ #x105a7af3f2>. | |
;;; 一回目の `#:hello' を #n= と #n# で参照すればよい。 | |
(flet ((#1=#:hello () "Hello, World!")) | |
(#1#)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment