mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 16:57:35 +02:00
Simple example to investigate closure improvements
This commit is contained in:
parent
ccd975345a
commit
8f6d5db797
1 changed files with 10 additions and 6 deletions
16
test.scm
16
test.scm
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue