[erlang-questions] how: to serialize a function?
Matthew Dempsky
matthew@REDACTED
Mon Feb 25 22:33:33 CET 2008
On 2/25/08, Tim Fletcher <twoggle@REDACTED> wrote:
> Just checking - I wasn't sure whether it was something that could
> somehow be "looked up" in the process that defined the function.
Nope, two different funs at the same place with different bound
variables will have the same string representation, even though
they're different terms:
1> A = fun() -> true end.
#Fun<erl_eval.20.67289768>
2> B = fun() -> false end.
#Fun<erl_eval.20.67289768>
3> A == B.
false
More information about the erlang-questions
mailing list