fun opacity

Peter-Henry Mander erlang@REDACTED
Mon Jan 10 08:49:19 CET 2005

Hi Vance,

I think your answer lies within this thread.

Unless the fun is part of a module in a beam file on the remote node,
you can't call on it. The shell uses erl_eval which is available on all
nodes to achieve what appear like passing a fun to a remote node and
executing it there. Raimo Niskanen explains this far more competently
than I can here:


On Fri, 7 Jan 2005 17:06:14 -0500
Vance Shipley <vances@REDACTED> wrote:

> Am I correct in assuming that I can create a fun on one
> node, pass it to another where the requisite module doesn't
> exist, pass it back to the original node and call it there?
> In other words is the fun value passed opaque enough that
> it can be passed around like 42 or foo and when it makes it 
> back to the original node it will work the same as before it
> left?
> 	-Vance

"The Tao of Programming
 flows far away 
 and returns 
 on the wind of morning."

More information about the erlang-questions mailing list