[erlang-questions] Execute module code from stored anonymous function

Nuku Ameyibor nayibor@REDACTED
Sun Sep 11 08:56:55 CEST 2016


Dear List ,

i run into an issue where i was storing an anonymous function in mnesia  to
be executed later .
*F=fun(test) ->mprocess:process_template(test)end.*


however  as soon as i make some changes to the mprocess module  and upgrade
the module i get a *** exception error: bad function* error when i retrieve
the fun and try to execute which i assume is because of the difference in
the module versions .
Is there a way of making the stored fun execute the code and not have
version conflicts .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160911/fe05feaf/attachment.htm>


More information about the erlang-questions mailing list