closure.scm 450 B

1234567891011121314
  1. ; Part of Scheme 48 1.9. See file COPYING for notices and license.
  2. ; Authors: Richard Kelsey, Jonathan Rees
  3. ; Closures
  4. (define closure-rtd (make-record-type 'closure '(template env)))
  5. (define closure? (record-predicate closure-rtd))
  6. (define make-closure (record-constructor closure-rtd '(template env)))
  7. (define closure-template (record-accessor closure-rtd 'template))
  8. (define closure-env (record-accessor closure-rtd 'env))