-
Notifications
You must be signed in to change notification settings - Fork 22
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
Some compat functions #232
Conversation
Codecov Report
@@ Coverage Diff @@
## master #232 +/- ##
=======================================
Coverage 75.38% 75.38%
=======================================
Files 5 5
Lines 459 459
=======================================
Hits 346 346
Misses 113 113 |
a5bc81e
to
55f9556
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
end | ||
|
||
function LoadPackageAndExposeGlobals(package::String, mod::Module; all_globals::Bool = false) | ||
current_gvar_list = EvalString("ShallowCopy(NamesGVars())") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor remark: We only need this if all_globals
is false. So we may want to execute it conditionally, no? Also, couldn't you write Globals.ShallowCopy(Globals.NamesGVars())
instead of using EvalString
?
I also fixed your minor remark. Could you approve again? |
@gap
macro which performsEvalString
LoadPackageAndExposeGlobals
to expose the package globals from a load into a modules scope (default: Main)