Consider the following code:

addprocs(2)
function helloworld()
   println("Hello World")
end

remotecall_fetch(helloworld, 2)

This throws an error because the function helloworld isn't defined on 
process 2. I've found a couple of workarounds:
1. Use @everywhere while declaring the function
2. Place the function in a file or module and include it everywhere.

Are there any alternatives to this? I would like to pass around functions 
like they were regular data items.

Reply via email to