[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A possible bug in funcall
- To: info-mcl
- Subject: A possible bug in funcall
- From: wineberg@scs.carleton.ca (Mark Wineberg)
- Date: 13 Nov 92 23:30:05 GMT
- Distribution: na
- Followup-to: comp.lang.lisp.mcl
- Newsgroups: comp.lang.lisp.mcl
- Organization: School of Computer Scince, Carleton University, Ottawa, Canada
- Reply-to: wineberg@scs.carleton.ca
- Sender: news@cunews.carleton.ca (News Administrator)
I was experimenting with funcalls on mcl version 2.0 and found a behavior
that I did not understand. The lambda expresions were all copied
so the error is not produced by a typo. I far as I know, the
car of the list is a valid function, properly written with the
#', yet when the car is taken, a funcall on it does not work.
Is this a bug in the system or am I misusing something.
An example taken from the listener's transcript follows:
? (funcall #'(lambda () (+ 1 2 3 4 5)))
15
? (funcall (eval '#'(lambda () (+ 1 2 3 4 5))))
15
? (car '(#'(lambda () (+ 1 2 3 4 5)) 25))
#'(LAMBDA NIL (+ 1 2 3 4 5))
? (funcall (car '(#'(lambda () (+ 1 2 3 4 5)) 25)))
> Error: #'(LAMBDA NIL (+ 1 2 3 4 5)) can't be FUNCALLed or APPLYed.
> While executing: CCL::TOPLEVEL-EVAL
> Type Command-. to abort.
See the RestartsI menu item for further choices.
1 >
Thanking anyone who replies in advance,
Mark Wineberg (wineberg@scs.carleton.ca)