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

Some compat functions #232

Merged
merged 2 commits into from
May 10, 2019
Merged

Conversation

sebasguts
Copy link
Contributor

  • add an @gap macro which performs EvalString
  • add LoadPackageAndExposeGlobals to expose the package globals from a load into a modules scope (default: Main)

@codecov
Copy link

codecov bot commented May 4, 2019

Codecov Report

Merging #232 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #232   +/-   ##
=======================================
  Coverage   75.38%   75.38%           
=======================================
  Files           5        5           
  Lines         459      459           
=======================================
  Hits          346      346           
  Misses        113      113

@sebasguts sebasguts force-pushed the sg/gap_compat branch 4 times, most recently from a5bc81e to 55f9556 Compare May 5, 2019 12:53
@sebasguts sebasguts mentioned this pull request May 6, 2019
test/compat.jl Outdated Show resolved Hide resolved
pkg/GAPJulia/JuliaInterface/julia/gap.jl Show resolved Hide resolved
pkg/GAPJulia/JuliaInterface/julia/gap.jl Show resolved Hide resolved
pkg/GAPJulia/JuliaInterface/julia/gap.jl Outdated Show resolved Hide resolved
pkg/GAPJulia/JuliaInterface/julia/gap.jl Outdated Show resolved Hide resolved
pkg/GAPJulia/JuliaInterface/julia/gap.jl Outdated Show resolved Hide resolved
pkg/GAPJulia/JuliaInterface/julia/gap.jl Show resolved Hide resolved
pkg/GAPJulia/JuliaInterface/julia/gap.jl Outdated Show resolved Hide resolved
pkg/GAPJulia/JuliaInterface/julia/gap.jl Outdated Show resolved Hide resolved
fingolfin
fingolfin previously approved these changes May 9, 2019
Copy link
Member

@fingolfin fingolfin left a comment

Choose a reason for hiding this comment

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

Great, thanks!

pkg/GAPJulia/JuliaInterface/julia/gap.jl Show resolved Hide resolved
end

function LoadPackageAndExposeGlobals(package::String, mod::Module; all_globals::Bool = false)
current_gvar_list = EvalString("ShallowCopy(NamesGVars())")
Copy link
Member

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?

@sebasguts
Copy link
Contributor Author

I also fixed your minor remark. Could you approve again?

@fingolfin fingolfin merged commit 6e8d6c4 into oscar-system:master May 10, 2019
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.

2 participants