Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

(scheme lazy) bug #58

Closed
stibear opened this issue Feb 22, 2014 · 3 comments
Closed

(scheme lazy) bug #58

stibear opened this issue Feb 22, 2014 · 3 comments

Comments

@stibear
Copy link
Contributor

stibear commented Feb 22, 2014

https://gist.github.com/stibear/9159923
force's bug?

@stibear
Copy link
Contributor Author

stibear commented Feb 22, 2014

This is not force's bug.
https://gist.github.com/stibear/9160783

@stibear
Copy link
Contributor Author

stibear commented Feb 22, 2014

There is something wrong around begin.

(force (delay (begin (+ 1 2)))) ; => 3

(define count 0)
(force (delay (begin (set! count (+ count 1))))) ; => #f
count ; => 1

(force (delay (begin (+ 1 2) (+ 3 4)))) ; runtime error: invalid application: #t

@nyuichi
Copy link
Member

nyuichi commented Feb 23, 2014

@stibear Confirmed. It appears to be compiler's fault.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants