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

_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to