Skip to content

Instantly share code, notes, and snippets.

@g000001
Last active December 23, 2016 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save g000001/f7e9909239808aad70a5cf9fa112948e to your computer and use it in GitHub Desktop.
Save g000001/f7e9909239808aad70a5cf9fa112948e to your computer and use it in GitHub Desktop.
cnvr.scm
(define (printfoobar)
(define place (zowie))
(place)
(values))
(define (printfoo)
(define place (zowie))
(values))
(define (zowie)
(call/cc (lambda (return)
(print 'foo)
(call/cc (lambda (printbar)
(return printbar)))
(print 'bar)
(lambda () #f)))) ;;??? #fにしたいんだけど……
(pirntfoo)
;>> foo
(pirntfoobar)
;>> foo
;>> bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment