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

repair fx-/wraparound with 0 first argument, allow one argument #899

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

mflatt
Copy link
Contributor

@mflatt mflatt commented Dec 30, 2024

The fx-/wraparound function was treated like R6RS fx- by cp0, which meant that it could reduce a 2-argument call with 0 as the first argument to a 1-argument call, even though fx-/wraparound was defined with only a 2-argument form. Making fx-/wraparound more like R6RS fx- seems like the path of least resistance and least likelihood of future bugs.

The `fx-/wraparound` function was treated like R6RS `fx-` by cp0,
which meant that it could reduce a 2-argument call with `0` as the
first argument to a 1-argument call, even though `fx-/wraparound` was
defined with only a 2-argument form. Making `fx-/wraparound` more like
R6RS `fx-` seems like the path of least resistance and least
likelihood of future bugs.
Copy link
Contributor

@burgerrg burgerrg left a comment

Choose a reason for hiding this comment

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

Thanks for this fix!

@mflatt mflatt merged commit 003a1bf into cisco:main Jan 3, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants