Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!sol.ctr.columbia.edu!cunixf.cc.columbia.edu!cs.columbia.edu!d-yang From: d-yang@cs.columbia.edu (David Yang) Newsgroups: comp.lang.lisp Subject: Problem with (apply #'or )? (cl 3.0.1) Message-ID: <1991Feb15.065508.28609@cs.columbia.edu> Date: 15 Feb 91 06:55:08 GMT Sender: news@cs.columbia.edu (The Daily News) Reply-To: d-yang@division.columbia.edu (David Yang) Organization: Columbia University Department of Computer Science Lines: 37 Maybe I'm missing something, but I don't see why (apply #'or '(t nil t nil)) shouldn't work. What am I missing? Thanks in advance for any help, David Yang d-yang@cs.columbia.edu Script started on Fri Feb 15 01:40:19 1991 $ lisp sh: lisp: not found $ ../lisp ;;; ;;; Sun Common Lisp, Development Environment 3.0.1, 27 October 1988 ;;; Sun-4 Version for SunOS 4.0 ;;; ;;; Copyright (c) 1985, 1986, 1987, 1988 by Sun Microsystems, Inc., All Rights Reserved ;;; Copyright (c) 1985, 1986, 1987, 1988 by Lucid, Inc., All Rights Reserved ;;; ;;; This software product contains confidential and trade secret ;;; information belonging to Sun Microsystems. It may not be copied ;;; for any reason other than for archival and backup purposes. > (apply #'or '(t nil t nil)) >>Error: OR called with 4 arguments, but only 2 arguments are allowed OR: Required arg 0 (FORM): T Required arg 1 (ENVIRONMENT): NIL :C 0: Ignore extra arguments :A 1: Abort to Lisp Top Level -> (apply #'+ '(1 2 3 4)) 10 -> (quit) $ script done on Fri Feb 15 01:41:04 1991