[R6RS] libraries

Michael Sperber sperber
Sun Dec 11 05:47:59 EST 2005


dyb at cs.indiana.edu writes:

> Good point---I think I understand your criteria.  Would this be okay,
> then?
>
>   (library S "scheme://r6rs"
>     (export A P! s)
>     (define s '())
>     (define-syntax A
>       (syntax-rules ()
>         [(_ p x) (p s x)]))
>     (define-syntax P!
>       (syntax-rules ()
>         [(_ x y) (set! x (cons y s))])))
>   (library T "scheme://r6rs"
>     (import S)
>     (export P0!)
>     (define (P0!) (A P! 0)))
>
> I assume so, since both the set! and reference to 's' are within S.

Yes.

-- 
Cheers =8-} Mike
Friede, V?lkerverst?ndigung und ?berhaupt blabla


More information about the R6RS mailing list