[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] ANN: first draft of R7RS small language available



On Tue, 19 Apr 2011, Andre van Tonder wrote:

> (module (A)
>   ...
>   (define counter (let ((n 0)) (lambda () (set! n (+ n 1)) n)))
>   (define-syntax counter-macro (syntax-rules () ((_) (counter))))
>
> (module (B)
>   (import (only (A) counter counter-macro))
>   (write (counter-macro))
>   (write (counter)))

By the way, sorry, this example wasn't doing what I was trying to show.  But 
please see the MATCH example in my other post.

_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports