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

don't warn when modules have the name of something in Base #4715

Closed
StefanKarpinski opened this issue Nov 2, 2013 · 3 comments
Closed

don't warn when modules have the name of something in Base #4715

StefanKarpinski opened this issue Nov 2, 2013 · 3 comments
Milestone

Comments

@StefanKarpinski
Copy link
Sponsor Member

The classic example come from using Gadfly:

Warning: using Base.Stat in module Stat conflicts with an existing identifier.

This could possibly be fixed by binding the name of the module after doing the automatic using Base in a new module.

@JeffBezanson
Copy link
Sponsor Member

I'm not sure that warning is necessary at all. Why should these behave differently:

julia> module Foo
         symv = 0
         using Base.BLAS
       end
Warning: using BLAS.symv in module Foo conflicts with an existing identifier.

vs:

julia> module Foo                
         using Base.BLAS
         symv = 0
       end
# silence

@StefanKarpinski
Copy link
Sponsor Member Author

I can get on board with that too.

@JeffBezanson
Copy link
Sponsor Member

The history of this is #2054.

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

No branches or pull requests

2 participants