[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why is the value NIL special?



(SETQ MACRO-EXPANSION-USE 'MACROMEMO)
(DEFMACRO F1 (X) (PRINT X) ())
(DEFMACRO F2 (X) (PRINT X) '(QUOTE ()))
(DEFUN G1 () (F1 "FOOBAR"))
(DEFUN G2 () (F2 "FOOBAR"))

(G1) ; prints "FOOBAR"
(G1) ; continues to print "FOOBAR"
(G2) ; prints "FOOBAR"
(G2) ; doesn't print "FOOBAR" because the MEMOIZING worked.

-gjc