Skip to content

Instantly share code, notes, and snippets.

@takikawa
Created August 31, 2012 05:45
Show Gist options
  • Save takikawa/3549450 to your computer and use it in GitHub Desktop.
Save takikawa/3549450 to your computer and use it in GitHub Desktop.
Continuation barriers?
#lang racket
(define f
(call-with-continuation-prompt
(lambda ()
(call/cc (lambda (k) k)))))
(call-with-continuation-prompt
(lambda ()
(call-with-continuation-barrier
(lambda ()
(f 5)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment