[erlang-questions] serializing funs

Evgeny M donpedrothird@REDACTED
Sun Jul 14 18:50:34 CEST 2013


Hi,
How can I serialize a fun with its'complete representation from a module? 
Seems like term_to_binary returns full representation only when it is 
called from shell, in module it returns reference or something like this. I 
need to create a fun in a module and pass it to another node that has 
different modules.
Is this possible at all? Also, am i right that such serialization returns 
closure, including all variables bound outside of the fun body?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130714/e0826c75/attachment.htm>


More information about the erlang-questions mailing list