I'm having some problem writing a LISP function. The function is defined as
(defun foo (arg1 &optional cont)) (cond ((null arg1) nil) ((= 0 cont) arg1) ((do_something)) ((recursive call)))) When i call the function with cont everything works fine, but when I call it just with arg1 the error returned is:
Error: in ZEROP of (NIL) arguments should be of type NUMBER I guess something is wrong in the condition ((= 0 cont) arg1), can you help me solve this problem? Thanks
(defun foo (arg1 &optional (cont nil contp))... for instance=has been replaced by a call tozeropby the compiler.