Skip to content

Commit

Permalink
Merge pull request #146 from JuliaLang/anj/remote
Browse files Browse the repository at this point in the history
Add compatibillity for argument changes to remotecall functions
  • Loading branch information
andreasnoack committed Sep 29, 2015
2 parents dde44ba + 2584993 commit 9a64b37
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -688,4 +688,14 @@ if VERSION < v"0.4.0-dev+3837"
const OutOfMemoryError = MemoryError
end

if VERSION < v"0.5.0-dev+431"
for f in (:remotecall, :remotecall_fetch, :remotecall_wait, :remote_do)
@eval begin
($f)(f, w::Base.LocalProcess, args...) = ($f)(w, f, args...)
($f)(f, w::Base.Worker, args...) = ($f)(w, f, args...)
($f)(f, id::Integer, args...) = ($f)(id, f, args...)
end
end
end

end # module

0 comments on commit 9a64b37

Please sign in to comment.