scsh-0.5/alt/closure.scm

12 lines
420 B
Scheme
Raw Permalink Normal View History

1995-10-13 23:34:21 -04:00
; Copyright (c) 1993, 1994 Richard Kelsey and Jonathan Rees. See file COPYING.
; Closures
(define closure-rtd (make-record-type 'closure '(template env)))
(define closure? (record-predicate closure-rtd))
(define make-closure (record-constructor closure-rtd '(template env)))
(define closure-template (record-accessor closure-rtd 'template))
(define closure-env (record-accessor closure-rtd 'env))