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

add an internal function to replace Main, use it in sysimg.jl #5821

Merged
merged 1 commit into from
Feb 16, 2014

Conversation

JeffBezanson
Copy link
Sponsor Member

make the Core.Main binding non-constant, so uses of "Main" in general refer to the current Main. Doing "import Main" will give you a constant reference to the Main at that time.

fixes #5802

related to #1195

@JeffBezanson
Copy link
Sponsor Member Author

We also need #1268 right away, since otherwise many packages can't be "restarted" when the system image is loaded.

make the Core.Main binding non-constant, so uses of "Main" in general
refer to the *current* Main. Doing "import Main" will give you a
constant reference to the Main at that time.

fixes #5802

related to #1195
@vtjnash
Copy link
Sponsor Member

vtjnash commented Feb 15, 2014

I would be slightly more concerned about JuliaPackaging/BinDeps.jl#77

Currently, it's pretty easy to put Gtk.init(), etc. in your .juliarc.jl file (although it would be nice to have some _start functionality)

JeffBezanson added a commit that referenced this pull request Feb 16, 2014
add an internal function to replace Main, use it in sysimg.jl
@JeffBezanson JeffBezanson merged commit 2fdefe2 into master Feb 16, 2014
@JeffBezanson JeffBezanson deleted the jb/replace_main branch February 16, 2014 01:50
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.

Precompiling packages that have path manipulations
2 participants