[Openmcl-devel] Shortcircuiting of argument evaluation in #'<
Eric Marsden
eric.marsden at free.fr
Wed Jan 9 04:44:17 PST 2013
Hi,
The function < is shortcircuiting the evaluation of its arguments, which
from my reading of CLHS (3.1.2.1.2.3 Function Forms) is not allowed (my
understanding is that it's allowed for special forms/macros, but not for
functions).
,----
| Welcome to Clozure Common Lisp Version 1.9-dev-r15573M (LinuxX8664)!
| ? (defun foo (a)
| (if (< 3 2 (setq a -1)) a a))
| FOO
| ? (foo 1)
| 1 ;; expecting -1
`----
--
Eric Marsden
More information about the Openmcl-devel
mailing list