Question on freeze and intern

10 views
Skip to first unread message

Joel Shellman

unread,
May 30, 2012, 2:08:25 AM5/30/12
to qil...@googlegroups.com
Should we expect the following to compile and evaluate to true?
(= ((thaw ((intern (cn "fr" "eeze")) (+ 2))) 3) 5)
clojure: Wrong number of args (1) passed to: primitives$freeze
clisp: APPLY: freeze is a macro, not a function

Since freeze is on the "system functions" list, I would kind of expect
it to behave like a function. This works:
(= ((intern (cn "tls" "tr")) "foo") "oo")

Mark Tarver

unread,
May 30, 2012, 5:07:44 AM5/30/12
to Qilang
no its a macro; it does not obey applicative order evaluation
Reply all
Reply to author
Forward
0 new messages