closure.scm 421 B

123456789101112
  1. ; Copyright (c) 1993-2007 by Richard Kelsey and Jonathan Rees. See file COPYING.
  2. ; Closures
  3. (define closure-rtd (make-record-type 'closure '(template env)))
  4. (define closure? (record-predicate closure-rtd))
  5. (define make-closure (record-constructor closure-rtd '(template env)))
  6. (define closure-template (record-accessor closure-rtd 'template))
  7. (define closure-env (record-accessor closure-rtd 'env))