[Openmcl-devel] Shortcircuiting of argument evaluation in #'<

R. Matthew Emerson rme at clozure.com
Wed Jan 9 08:53:01 PST 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 (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
> `----

Fixed in the trunk;  thanks.





More information about the Openmcl-devel mailing list