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

Changes invokelatest eval to run in current_module() #359

Merged
merged 1 commit into from
May 16, 2017

Conversation

JobJob
Copy link
Contributor

@JobJob JobJob commented May 16, 2017

invokelatest runs in module Compat on julia 0.5, so this:

import Compat.invokelatest
invokelatest(current_module)

returns Compat in julia 0.5, but on 0.6-rc1.0 (which has Base.invokelatest defined) it returns Main.

After this PR they both return Main.

test/runtests.jl Outdated
@@ -1870,6 +1870,8 @@ let
@test_throws MethodError Dates.Month(1) < Dates.Day(1)
end

@test Compat.invokelatest(current_module) != Compat
Copy link
Contributor

Choose a reason for hiding this comment

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

=== current_module()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, that's better

@stevengj
Copy link
Member

doh, my fault, sorry

@stevengj stevengj merged commit 07cde02 into JuliaLang:master May 16, 2017
@tkelman
Copy link
Contributor

tkelman commented May 16, 2017

worth a patch release if you're in a hurry to use this in ijulia

@stevengj
Copy link
Member

Okay, will tag a patch release.

@stevengj
Copy link
Member

Tagged 0.25.1 (JuliaLang/METADATA.jl#9334)

@JobJob JobJob deleted the invokelatest-current-module branch May 18, 2017 05:12
martinholters added a commit that referenced this pull request Sep 10, 2018
fredrikekre pushed a commit that referenced this pull request Sep 14, 2018
* `zeros` and `ones` with interface of `similar` (from #330)

* `convert` between `Set` types (from #342)

* `isassigned(::RefValue)` (from #345)

* `unsafe_trunc(::Type{<:Integer}, ::Integer)` (from #344)

* `bswap` for complex numbers (from #346)

* Compat.StringVector (from #348)

* `invokelatest` (from #352 and #359)

* Misc. pre-0.6-only code

* obsolete README enries
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.

4 participants