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

(defpattern Name ...) uses Name to register the pattern handler before the package macro has prefixed all symbols #7

Open
tizoc opened this issue Jun 11, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@tizoc
Copy link
Owner

tizoc commented Jun 11, 2020

Since registering of the handler happens during macro expansion, which itself happens before the package form is handled, the reference to the pattern handler is added using the unprefixed name.

There is no way to recover the name of the current package at the moment, so the solution for now is to just make users aware of this.

library is likely to use it's own loader in the future and discourage the use of package in favor of other namespacing mechanism. In that case package wouldn't be a problem.

@tizoc tizoc added the bug Something isn't working label Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant