現在、関数型言語で継続を実験しているとき、継続は現在のプログラムカウンターとレジスタファイルを記録し、継続が返されると、PCと登録ファイルは記録された値に復元されると理解しています。 。
したがって、Mightのブログ投稿からの次のばかげた例では、
; right-now : -> moment
(define (right-now)
(call-with-current-continuation
(lambda (cc)
(cc cc))))
; go-when : moment -> ...
(define (go-when then)
(then then))
; An infinite loop:
(let ((the-beginning (right-now)))
(display "Hello, world!")
(newline)
(go-when the-beginning)) ; here the-beginning continuation passed to go-when, which ultimately will have an continuation applied to an continuation, that returns a continuation, which will cause the the program point resumed to the PC and registers states recorded in it.
理解が正しいかわかりません。そうでないと思われる場合は訂正してください。