Skip to content

Instantly share code, notes, and snippets.

@jrevels
Created November 5, 2015 15:34
Show Gist options
  • Save jrevels/30966708dce01260cba1 to your computer and use it in GitHub Desktop.
Save jrevels/30966708dce01260cba1 to your computer and use it in GitHub Desktop.
@everywhere module A
immutable Foo{T}
x::T
end
cross(a::Foo, b::Foo) = Foo(a.x * b.x)
function reload_cross(a, b)
include(joinpath(pwd(), "parallel-reload-bug.jl"))
return A.cross(a, b)
end
end
@fetchfrom 2 A.reload_cross(A.Foo(rand()), A.Foo(rand()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment