[Openmcl-devel] errors for wrong number of argumments?

Barton Willis willisb at unk.edu
Wed May 29 04:58:17 PDT 2013


64 bit CCL 1.9  under Microsoft Windows--error for (add 42) (OK), but no error for (add 1 2 3) (not OK)

$ wx86cl64
Welcome to Clozure Common Lisp Version 1.9-r15765  (WindowsX8664)!
? (defun add (a b) (+ a b))
ADD
? (add 42)
> Error: The value (42) is not of the expected type NUMBER.
> While executing: CCL::+-2, in process listener(1).
> Type :POP to abort, :R for a list of available restarts.
> Type :? for other options.
1 > (add 1 2 3)
5
1 > (quit)

32 bit CCL 1.9 under Microsoft Windows --spurious value for (add 42) (not OK), and error for (add 1 2 3) (OK):

$ wx86cl
Welcome to Clozure Common Lisp Version 1.9-r15764  (WindowsX8632)!
? (defun add (a b) (+ a b))
ADD
? (add 42)
84
? (add 1 2 3)
> Error: Fault during read of memory address #x4
> While executing: ADD, in process listener(1).
> Type :POP to abort, :R for a list of available restarts.
> Type :? for other options.
1 >


--Barton (Maxima developer)









More information about the Openmcl-devel mailing list