Skip to content

Commit

Permalink
fix scope issue with @-everywhere
Browse files Browse the repository at this point in the history
similar to other issues mentioned in #23146
  • Loading branch information
vtjnash committed Aug 7, 2017
1 parent ab83b6a commit d61b054
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/distributed/macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ processes to have execute the expression.
Equivalent to calling `remotecall_eval(Main, procs, expr)`.
"""
macro everywhere(ex)
return :(@everywhere procs() $ex)
procs = GlobalRef(@__MODULE__, :procs)
return esc(:(@everywhere $procs() $ex))
end

macro everywhere(procs, ex)
Expand Down

0 comments on commit d61b054

Please sign in to comment.