-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
template-generating templates are not exported #13828
Comments
Note that this bug can be worked around with the (undocumented) dirty pragma. |
It's documented here https://nim-lang.org/docs/manual.html#templates-hygiene-in-templates I opened the manual, searched for "dirty" and found it immediately. Maybe the next time you can do the same, thanks. |
I'm aware of the mention in the manual. Unfortunately that's it though - it's not listed in the pragmas section, not does it have even a code block. |
That only means that the docs are lacking, not that it's "undocumented". |
Example
Current Output
Compiler output from
expandMacros
:The generated templates are not usable outside of the current module. Making them procs instead preserves the export token.
Expected Output
Possible Solution
?
Additional Information
The text was updated successfully, but these errors were encountered: