Detect trivial infinite recursion in promises.
authorTaylor R Campbell <campbell@mumble.net>
Thu, 3 Jan 2019 16:35:11 +0000 (16:35 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Fri, 4 Jan 2019 07:08:15 +0000 (07:08 +0000)
commit9d01faa36c5c6148104c155d388ca14ef8adb619
tree2ece99f811c597c2eb3ad0ab543c66e056bb6b76
parent23704145f986dcbb9e5e271d50a5f81986244433
Detect trivial infinite recursion in promises.

Obviously this can be fooled, like

(force (let loop () (delay-force (loop))))

or any non-halting Turing machine, but this is an easy case to detect
with negligible cost.
src/runtime/boot.scm
tests/runtime/test-promise.scm