<div dir="ltr"><div>thanks for quick reply .<br></div>will give it a shot .<div class="gmail-yj6qo gmail-ajU"><div tabindex="0" class="gmail-ajR" id="gmail-:31n"><img src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" class="gmail-ajT"></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 11, 2016 at 7:08 AM, Dmytro Lytovchenko <span dir="ltr"><<a target="_blank" href="mailto:dmytro.lytovchenko@gmail.com">dmytro.lytovchenko@gmail.com</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div dir="ltr">In your case the pointer to function is stored internally and it goes extinct when module is gone.<br>If you make it calculate function at runtime by, say, calling apply(mprocess, process_template, [test]), then it should work.<br></div><br><div class="gmail_quote"><div><div class="gmail-h5"><div dir="ltr">sön 11 sep. 2016 kl 08:57 skrev Nuku Ameyibor <<a target="_blank" href="mailto:nayibor@gmail.com">nayibor@gmail.com</a>>:<br></div></div></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div><div class="gmail-h5"><div dir="ltr"><div><div><div><div>Dear List ,<br><br></div>i run into an issue where i was storing an anonymous function in mnesia  to be executed later .<br><b>F=fun(test) ->mprocess:process_template(<wbr>test)end.</b><br><br></div><div><br></div>however  as soon as i make some changes to the mprocess module  and upgrade the module i get a <b>** exception error: bad function</b> error when i retrieve the fun and try to execute which i assume is because of the difference in the module versions . <br></div>Is there a way of making the stored fun execute the code and not have version conflicts .<br></div><br></div></div></div>
______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a target="_blank" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a target="_blank" rel="noreferrer" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
</blockquote></div>
</blockquote></div><br></div></div>