chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] my errors with eval


From: Daniel Ajoy
Subject: [Chicken-users] my errors with eval
Date: Tue, 02 Jul 2013 14:26:46 -0500
User-agent: Opera Mail/12.15 (Win32)

Hi,

Both this

(let ((a 1) )
  (define (inc)
        (set! a (+ 1 a ) ) )
  (define (runTwice op )
        (op)
        (op) )
  (eval '(runTwice inc ) )
  )

and this

(let* ((a 1) )
  (define (inc)
        (set! a (+ 1 a ) ) )
  (define (runTwice op )
        (op)
        (op) )
  (eval '(runTwice inc ) )
  )

Give me the error:

Error: unbound variable: runTwice

I'm defining runTwice right before running the eval. What am I not 
understanding?

Daniel



reply via email to

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