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

Make suppress macro export variable in outer scope automatically #68

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Tortar
Copy link

@Tortar Tortar commented May 11, 2024

Actually this fixes everything, so no need for the suggested workaround in #67, now:

julia> using Suppressor

julia> @suppress g = 1

julia> module M
           using Suppressor
           @suppress g = 1
       end
Main.M

julia> g
1

julia> Main.M.g
1

It should probably applied to all macros actually, but I'd like to know what mantainers think of this

@Tortar
Copy link
Author

Tortar commented May 11, 2024

this is breaking though

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.

1 participant