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

checking a package changes the namespace #1787

Closed
mikestillman opened this issue Jan 4, 2021 · 1 comment
Closed

checking a package changes the namespace #1787

mikestillman opened this issue Jan 4, 2021 · 1 comment

Comments

@mikestillman
Copy link
Member

The following code appears to assign a value to f.

needsPackage "Complexes"
check Complexes
f
@mahrud
Copy link
Member

mahrud commented Jan 4, 2021

Ah, it's because I'm passing the UserMode option of check to capture:

(err, output) := capture(teststring, PackageExports => pkg, UserMode => usermode);

If you do check(Complexes, UserMode => false) it should go away, or if you start M2 with -q.

But perhaps we should change this. Either default value of [check, UserMode] should be false, or check should always pass UserMode => false to capture. Which would you prefer?

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