Simple example to investigate closure improvements

This commit is contained in:
Justin Ethier 2015-03-30 22:19:32 -04:00
parent ccd975345a
commit 8f6d5db797

View file

@ -1,11 +1,15 @@
((lambda (x)
((lambda ()
((lambda (z)
(+ x z)) 2)))) 1)
;;; Temporary testing, delete this once it works
; Need to rewrite the code to use this, and preserve the global def
(define (test)
(call/cc
(lambda (return)
(return #t))))
(write (test))
;(define (test)
; (call/cc
; (lambda (return)
; (return #t))))
;(write (test))
;
;; (write
;; (with-exception-handler
;; (lambda (con)