Skip to content

Fix primitive string comparison on Chez #792

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

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

jiribenes
Copy link
Contributor

Found when debugging #561 -- string comparison was present on Chez, but it never worked as strings are compared with operations that look like string<?.
See section 7.4 here https://www.scheme.com/csug8/objects.html :)

I also added a tiny test to ensure that this doesn't confuse anybody else down the line.

chez "(< ${x} ${y})"
chez "(string<? ${x} ${y})"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good one! :)

Copy link
Contributor Author

@jiribenes jiribenes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@jiribenes jiribenes merged commit e4be2f9 into master Jan 22, 2025
2 checks passed
@jiribenes jiribenes deleted the fix/chez-string-comparison branch January 22, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant