Lisp Scheme Part22
■ このスレッドは過去ログ倉庫に格納されています
0196デフォルトの名無しさん
2008/05/29(木) 23:19:58(define continuation #f)
(let loop ((counter 1))
(if (< counter 2)
(begin
(if (= counter 1)
(call-with-current-continuation
(lambda (k) (set! continuation k))))
(write counter) (newline)
(loop (+ counter 1)))
'finished)) ;==> 1finished
(continuation #t) ;==> 1finished
(continuation #t) ;==> 1finished
(continuation #t) ;==> 1finished
■ このスレッドは過去ログ倉庫に格納されています