Search found 3 matches

by brooks
Wed Jul 27, 2011 7:00 pm
Forum: Common Lisp
Topic: why does this line doesn't work?
Replies: 5
Views: 5137

Re: why does this line doesn't work?

Oh yes, It's really what my want. Thanks a lot.
by brooks
Wed Jul 27, 2011 6:53 am
Forum: Common Lisp
Topic: why does this line doesn't work?
Replies: 5
Views: 5137

Re: why does this line doesn't work?

thanks.

I am reading Practical Common Lisp and now I understand the correct code should be:

(lambda (f) (apply f '(1 2))) '+ )
by brooks
Wed Jul 27, 2011 1:12 am
Forum: Common Lisp
Topic: why does this line doesn't work?
Replies: 5
Views: 5137

why does this line doesn't work?

I'm using GNU Common Lisp(gcl), when I wrote:

( (lambda (f) (f 1 2)) '+ )

gcl complains:The Function F is undefined. why? It's invalid to pass a function to lambda macro ?