]> birchwood-abbey.net Git - mit-scheme.git/commit
Handle circularity in arguments to equal?.
authorChris Hanson <org/chris-hanson/cph>
Sun, 6 Nov 2022 07:47:04 +0000 (00:47 -0700)
committerChris Hanson <org/chris-hanson/cph>
Mon, 7 Nov 2022 00:02:25 +0000 (16:02 -0800)
commit5eff99eb25739f8ca97f31822f63d0eab376e871
treecde292c1d82ee33953bc76d9f128637d12e272a7
parenta4bc72a9dab5d7df386d2cdc5d168d9072eba888
Handle circularity in arguments to equal?.

This is accomplished by detecting a pair of args that's been seen before and
returning the value from those args, or #t if there's no value yet.  Using a
true value allows the comparison to continue without committing to a particular
value for those args.  The actual value is determined when the original call
with those args finishes.
src/runtime/equals.scm
src/runtime/make.scm
src/runtime/runtime.pkg
tests/check.scm
tests/runtime/test-equals.scm [new file with mode: 0644]