Re: [racket] Problems using Sandbox and Scribble

reilithion <[email protected]>
Newsgroups gmane.comp.lang.racket.user,gmane.lisp.scheme.plt
Message-ID <[email protected]>
This works now. Sadly, I don't remember why I needed it to work.

#lang racket

(require racket/sandbox
         scribble/manual)

(define safe-eval
   (parameterize ([sandbox-namespace-specs
                   (append (sandbox-namespace-specs)
                           '(scribble/manual scribble/racket))])
     (make-evaluator 'racket/base
                     #:requires '(scribble/manual scribble/racket))))

(pretty-print (racket foo))  ; Gives one output
(pretty-print (safe-eval '(racket foo)))  ; Gives a slightly DIFFERENT output

(para (racket foo))  ; Finishes happily
(para (safe-eval '(racket foo)))  ; Error

-- 
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.