Welcome to the CHICKEN Scheme pasting service

sandbox inheritance issue? added by zilti on Fri Oct 7 22:26:09 2022

#;1> (import sandbox)
; loading /usr/lib64/chicken/11/sandbox.import.so ...
; loading /usr/lib64/chicken/11/sandbox.so ...
; loading /usr/lib64/chicken/11/defstruct.so ...
#;2> (define environ (make-safe-environment 'dulconnex mutable: #t parent: default-safe-environment))
#;3> (safe-eval '(+ 1 1) environment: environ)

Error: unbound variable: +

        Call history:

        <syntax>          (safe-eval (quote (+ 1 1)) #:environment environ)
        <syntax>          (quote (+ 1 1))
        <syntax>          (##core#quote (+ 1 1))
        <eval>    (safe-eval (quote (+ 1 1)) #:environment environ)     <--

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the result of `(apply + (list -3 4 2))'?
Visually impaired? Let me spell it for you (wav file) download WAV