3 (require "metacircular2-lazy.rkt")
5 (define env1 (make-environment))
6 (eval '(define count 0) env1)
7 (eval '(define (id x) (set! count (+ count 1)) x) env1)
11 > (eval '(define w (id (id 0))) env1)
17 #1=(#hash((< . (primitive #<procedure:<>))
18 (* . (primitive #<procedure:*>))
19 (> . (primitive #<procedure:>>))
20 (- . (primitive #<procedure:->))
21 (= . (primitive #<procedure:=>))
23 (+ . (primitive #<procedure:+>))
24 (list . (primitive #<procedure:list>))
25 (null? . (primitive #<procedure:null?>))
26 (/ . (primitive #<procedure:/>))
27 (car . (primitive #<procedure:car>))
29 (cdr . (primitive #<procedure:cdr>))
30 (cons . (primitive #<procedure:cons>))
32 (id . (procedure (x) ((set! count (+ count 1)) x) #1#))