From ... From: Erik Naggum Subject: Re: Functions as arguments in xlisp Date: 1998/04/13 Message-ID: <3101494170443846@naggum.no>#1/1 X-Deja-AN: 343732796 References: <6gtpec$orr$1@gte2.gte.net> mail-copies-to: never Organization: Naggum Software; +47 8800 8879; http://www.naggum.no Newsgroups: comp.lang.lisp * Doug Nelson | Can someone explain to me why the following does not work in xlisp 3.02? I'll take a wild guess. | > (defun dof (f a b) (f a b)) | dof | > (dof #'+ 2 3) | error: unbound function - f | if continued: try evaluating symbol again | 1> (defun dof (f a b) (funcall f a b)) should work. I guess xlisp 3.02 adheres to the standard Lisp way of not evaluating the functional position in a form. | In an older DOS version of xlisp, I get the expected answer: this is the standard Scheme way, and I think you could only expect that answer if you were thinking in Scheme terms. #:Erik -- religious cult update in light of new scientific discoveries: "when we cannot go to the comet, the comet must come to us."