Hi All,

I have the following program

   #!/usr/bin/env -S csi -script
   ;; -*- mode: scheme -*-

   (import (chicken pretty-print))
   (import (chicken eval))

   (module temp *
     (import scheme)
     (import (chicken base))
     (import (chicken syntax)))


   (define eval-env (module-environment 'temp))

   (pretty-print (eval '(+ 11 19) eval-env))     ; => prints 30 as  expected
   (pretty-print (eval '(define a 15) eval-env)) ; => unbound variable: define

What I basically want to implement (later) is a kind of REPL in a
"clean" or controlled environment. This program is just a preparatory
experiment.

What do I have to do / do I have to import (?) into the temp module so
that my eval sees 'define'?

I've only recently returned to scheme and probably missing s.th. basic.

Best Regards + Thanks -- Markus



Reply via email to