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

Add @reexport macro #5608

Closed
wants to merge 1 commit into from
Closed

Add @reexport macro #5608

wants to merge 1 commit into from

Conversation

simonster
Copy link
Member

This would fix #1986. Syntax is:

@reexport using MyModule1, MyModule2

Unlike my macro in #1986, this handles relative imports. It's a little awkward, since the macro expands into using and eval statements, but I couldn't find another way to do it. We might still want a new language keyword instead, but I figured I'd submit this as a PR and see what people think.

Syntax is:

@reexport using MyModule1, MyModule2

Fixes #1986
@johnmyleswhite
Copy link
Member

Having this functionality in any form would be great.

@stevengj
Copy link
Member

I'd rather have this as a new keyword...

I also prefer exportall (to mirror importall, and also beginning with export makes it easier to find via tab-completion).

@tknopp
Copy link
Contributor

tknopp commented Jan 31, 2014

Also would prefer a new keyword for consistency reasons.

@simonster
Copy link
Member Author

A modified version of this macro is now in METADATA as Reexport.jl until #1986 is resolved.

@simonster simonster closed this Apr 11, 2014
@simonster simonster deleted the sjk/reexport branch April 11, 2014 15:18
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.

Re-exporting one module's symbols from another
4 participants