Created
February 22, 2014 18:47
-
-
Save stibear/9159923 to your computer and use it in GitHub Desktop.
Bug of `force` in picrin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define count 0) | |
(define end 5) | |
(define p | |
(delay | |
(begin (set! count (+ count 1)) | |
(if (> count end) | |
count | |
(force p))))) | |
(force p) ; runtime error: invalid application: #t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment