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

Prevent clobbering vars maps provided by previous libs #528

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

kortschak
Copy link
Contributor

@kortschak kortschak commented Apr 7, 2022

Before this, when a lib is loaded with a Globals program option it would replace any existing global var maps, preventing the previously set maps from being available.

Happy to change docs wording if needed.

Closes #527.

Please take a look.

@kortschak
Copy link
Contributor Author

kortschak commented Apr 7, 2022

I'm going to make this a draft for a bit. I'm working on something that would make use of this and I'm getting unexpected results, so I want to make sure it works before this goes forward.

...

All good now.

@kortschak kortschak marked this pull request as draft April 7, 2022 23:26
@kortschak kortschak marked this pull request as ready for review April 7, 2022 23:55
Before this, when a lib is loaded with a Globals program option it would
replace any existing global var maps, preventing the previously set maps
from being available.
@TristonianJones
Copy link
Collaborator

/gcbrun

Copy link
Collaborator

@TristonianJones TristonianJones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making the fix here!

@TristonianJones TristonianJones merged commit 560fc9d into google:master Apr 11, 2022
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.

Library-provided global vars are clobbered by later-loaded libraries with global vars
2 participants