Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

equal? on cycles #302

Open
jcubic opened this issue Feb 3, 2024 · 0 comments
Open

equal? on cycles #302

jcubic opened this issue Feb 3, 2024 · 0 comments
Milestone

Comments

@jcubic
Copy link
Collaborator

jcubic commented Feb 3, 2024

This creates infinite loop:

(let ((x (cons 1 (cons 2 '()))))
  (set-cdr! (cdr x) x)
  (equal? x x))

equal? should check if an object is the same cycle. And also check if there are two identical cycles.

@jcubic jcubic added this to the 1.0 milestone Feb 3, 2024
jcubic added a commit that referenced this issue Mar 17, 2024
@jcubic jcubic closed this as completed Mar 17, 2024
@jcubic jcubic reopened this Mar 17, 2024
jcubic added a commit that referenced this issue Mar 17, 2024
jcubic added a commit that referenced this issue Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant