Add comment about dynamic-wind structure
1 files changed, 2 insertions(+), 2 deletions(-) M pages/posts/2023-05-22-continuations-summary.md
M pages/posts/2023-05-22-continuations-summary.md => pages/posts/2023-05-22-continuations-summary.md +2 -2
@@ 186,9 186,9 @@ cases. ```scheme (* 2 (reset (+ 1 (dynamic-wind (lambda () (display "entered\n")) (lambda () (display "entered\n")) ; on-enter hook (lambda () (shift k (set! kont k) (k 5))) (lambda () (display "exited\n")))))) (lambda () (display "exited\n")))))) ; on-exit hook ;; => 12, prints entered exited two times because we call k in shift (kont 3) ;; => 4, prints entered exited