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

Bind the internal planetcute id to a gensym. #12

Closed
wants to merge 1 commit into from

Conversation

samth
Copy link
Member

@samth samth commented Oct 23, 2015

This avoids an ambigous binding error created by the new macro system. Fixes
racket/racket#1099.

@samth
Copy link
Member Author

samth commented Oct 23, 2015

@rfindler does this look ok?

@rfindler
Copy link
Member

rfindler commented Oct 23, 2015 via email

@rfindler
Copy link
Member

rfindler commented Oct 23, 2015 via email

@samth
Copy link
Member Author

samth commented Oct 23, 2015

Happy to help. I'm gradually getting better at fixing set-of-scopes bugs.

As for working, it makes @tonyg's example compile. :) I'll add a test that gets run in DrDr so hopefully we avoid this in the future.

As for why it works, @mflatt can probably explain better, but the old code expanded character-cat-girl from 2htdp/planetcute to character-cat-girl intending to refer to the export of 2htdp/planetcute/character-cat-girl. But that meant there were two bindings of character-cat-girl available, and the new macro expander decided they were ambiguous. So now it expands to a reference to a gensym, which of course has only one binding.

This avoids an ambigous binding error created by the new macro system.
Fixes racket/racket#1099.

Add a test file that will be run in DrDr.
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