Can I unexport something?

I’m using a macro which exports something that I don’t want exported. Is there some Base.DarkMagic._remove_export_binding_assuming_P_eq_NP function I can use for that?

1 Like

Fix the source of the problem instead of hacking at the erroneous result.

1 Like

Creating a binding (e.g. a dummy variable) to that name before the export happens would prevent the name from being exported, I guess.

If you can put the usage of that macro in a module, you could reexport whatever symbols you want. There is even a package to do this: Reexport.jl.