私は顔が青くなるまでSteeleのCommonLispthe Languageを見つめてきましたが、まだこの質問があります。コンパイルした場合:
(defun x ()
(labels ((y ()))
5))
(princ (x))
(terpri)
これは起こります:
home:~/clisp/experiments$ clisp -c -q x.lisp
;; Compiling file /u/home/clisp/experiments/x.lisp ...
WARNING in lines 1..3 :
function X-Y is not used.
Misspelled or missing IGNORE declaration?
;; Wrote file /u/home/clisp/experiments/x.fas
0 errors, 1 warning
home:~/clisp/experiments$
けっこうだ。では、関数yを無視するようにコンパイラーに要求するにはどうすればよいですか?私はこれを試しました:
(defun x ()
(labels (#+ignore(y ()))
5))
(princ (x))
(terpri)
そしてそれはうまくいきました:
home:~/clisp/experiments$ clisp -c -q y.lisp
;; Compiling file /u/home/clisp/experiments/y.lisp ...
;; Wrote file /u/home/clisp/experiments/y.fas
0 errors, 0 warnings
home:~/clisp/experiments$
しかし、どういうわけか、それが私がそうすることを警告が示唆していることではないと思います。
私は何をしますか?