chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] understanding eval


From: Daishi Kato
Subject: [Chicken-users] understanding eval
Date: Fri, 22 Feb 2008 21:22:36 +0900
User-agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/21.4 Mule/5.0 (SAKAKI)

Hi,

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

Daishi

8<------8<------8<------8<------8<------8<------8<------8<------

CHICKEN
Version 2.732 - linux-unix-gnu-x86      [ manyargs dload ptables applyhook 
cross ]
(c)2000-2007 Felix L. Winkelmann        compiled 2007-12-04 on spirits (Linux)

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

        Call history:

        <syntax>                (eval (list a b))
        <syntax>                (list a b)
        <eval>          (eval (list a b))
        <eval>          (list a b)
        <syntax>                (car (1 2 3))
        <syntax>                (1 2 3)
        <eval>          (car (1 2 3))
        <eval>          (1 2 3) <--




reply via email to

[Prev in Thread] Current Thread [Next in Thread]