Implemented cintinuations and call/cc
This commit is contained in:
@@ -1 +1,7 @@
|
||||
;; (define (empty-function-body-test))
|
||||
(define (empty-function-body-test))
|
||||
|
||||
;; test that arguments to apply are only evaled once
|
||||
(define counter 0)
|
||||
(assert (= (apply (lambda (x) x) (begin (mutate! counter (+ 1 counter)) (list +)))
|
||||
+))
|
||||
(assert (= counter 1))
|
||||
|
||||
Reference in New Issue
Block a user