▼ |  | Scheme: Compatibility Libraries and Executables

1 | scheme
2 | scheme/ base
3 | scheme/ async-channel
4 | scheme/ bool
5 | scheme/ class
6 | scheme/ cmdline
7 | scheme/ contract
8 | scheme/ control
9 | scheme/ date
10 | scheme/ dict
11 | scheme/ file
12 | scheme/ fixnum
13 | scheme/ flonum
14 | scheme/ foreign
15 | scheme/ function
16 | scheme/ future
17 | scheme/ generator
18 | scheme/ gui
19 | scheme/ gui/ base
20 | scheme/ gui/ dynamic
21 | scheme/ help
22 | scheme/ include
23 | scheme/ init
24 | scheme/ language-info
25 | scheme/ list
26 | scheme/ load
27 | scheme/ local
28 | scheme/ match
29 | scheme/ math
30 | scheme/ mpair
31 | scheme/ nest
32 | scheme/ package
33 | scheme/ path
34 | scheme/ port
35 | scheme/ pretty
36 | scheme/ promise
37 | scheme/ provide
38 | scheme/ provide-syntax
39 | scheme/ provide-transform
40 | scheme/ require
41 | scheme/ require-syntax
42 | scheme/ require-transform
43 | scheme/ runtime-config
44 | scheme/ runtime-path
45 | scheme/ sandbox
46 | scheme/ serialize
47 | scheme/ set
48 | scheme/ signature
49 | scheme/ shared
50 | scheme/ splicing
51 | scheme/ string
52 | scheme/ struct-info
53 | scheme/ stxparam
54 | scheme/ stxparam-exptime
55 | scheme/ surrogate
56 | scheme/ system
57 | scheme/ tcp
58 | scheme/ trait
59 | scheme/ udp
60 | scheme/ unit
61 | scheme/ unit-exptime
62 | scheme/ unsafe/ ops
63 | scheme/ vector
64 | mred
65 | Compatibility Executables

On this page:

sandbox-namespace-specs
make-evaluator
make-module-evaluator

top← prev up next →

### 45`` scheme/sandbox

(require scheme/sandbox)

The scheme/sandbox library re-exports racket/sandbox, except that sandbox-namespace-specs, make-evaluator, and make-module-evaluator are replaced.

> > parameter

> > (sandbox-namespace-specs)

> > →

> > (cons/c (-> namespace?)
> > (listof module-path?))

> (sandbox-namespace-specs spec) → void?

> spec

> :

> (cons/c (-> namespace?)
> (listof module-path?))

Like sandbox-namespace-specs from racket/sandbox, but the default is (list make-base-namespace) if gui? is #f, (list make-gui-namespace) if gui? is #t.

> > procedure

> > (make-evaluator |  | language |  |  |  |
> > |  | input-program ... |  |  |  |
> > |  | #:requires requires |  |  |  |
> > |  | #:allow-read allow) |  | → |  | (any/c . -> . any)

> language

> :

> (or/c module-path?
> (list/c 'special symbol?)
> (cons/c 'begin list?))

> input-program : any/c
> requires : (listof (or/c module-path? path?))
> allow : (listof (or/c module-path? path?))

> (make-module-evaluator |  | module-decl |  |  |  |
> |  | #:language lang |  |  |  |
> |  | #:allow-read allow) |  | → |  | (any/c . -> . any)

> module-decl : (or/c syntax? pair?)
> lang : (or/c #f module-path?)
> allow : (listof (or/c module-path? path?))

Like make-evaluator and make-module-evaluator from racket/sandbox, but the value of the sandbox-namespace-specs parameter is installed as the value of sandbox-namespace-specs from racket/sandbox before chaining to make-evaluator and make-module-evaluator from racket/sandbox.
top← prev up next →