>>>>> Daishi Kato <[EMAIL PROTECTED]> writes:

 > Hi, This might be a stupid question, but would someone help me
 > understand the following eval example?  I was expecting to get 1.

[...]

 > #;1> (define a 'car)
 > #;2> (define b '(1 2 3))
 > #;3> (eval (list a b))
 > Error: call of non-procedure: 1

        Well, since (list a b) is '(car (1 2 3)), you're trying to
        evaluate: (car (1 2 3)).  Surely you didn't mean (car '(1 2 3))
        == (car (quote (1 2 3)))?

#;1> (car '(1 2 3))
1
#;2> (let ((a 'car)
           (b '(1 2 3)))
        (eval (list a (list 'quote b))))
1
#;3> 



_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to