[Openmcl-devel] Shortcircuiting of argument evaluation in #'<
R. Matthew Emerson
rme at clozure.com
Wed Jan 9 10:53:01 CST 2013
On Jan 9, 2013, at 7:44 AM, Eric Marsden <eric.marsden at free.fr> wrote:
> The function < is shortcircuiting the evaluation of its arguments, which
> from my reading of CLHS (184.108.40.206.2.3 Function Forms) is not allowed (my
> understanding is that it's allowed for special forms/macros, but not for
> | 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
Fixed in the trunk; thanks.
More information about the Openmcl-devel