svn: r12066

This commit is contained in:
Robby Findler 2008-10-19 12:40:31 +00:00
parent 46af55311d
commit a559c81d63

View File

@ -58,14 +58,10 @@ When defining a self-referential contract, it is natural to use
@scheme[define]. For example, one might try to write a contract on
streams like this:
@(define e (make-base-eval))
@(interaction-eval #:eval e (require scheme/contract))
@interaction[
#:eval
(parameterize ([sandbox-security-guard (current-security-guard)]
[sandbox-output 'string]
[sandbox-error-output 'string]
[sandbox-eval-limits #f]
[sandbox-make-inspector current-inspector])
(make-evaluator '(begin (require scheme))))
#:eval e
(define stream/c
(promise/c
(or/c