<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1422459573807_3043"><span>thanks Ulf for the help,</span></div><div dir="ltr" id="yui_3_16_0_1_1422459573807_3043"><span><br></span></div><div dir="ltr" id="yui_3_16_0_1_1422459573807_3043"><span id="yui_3_16_0_1_1422459573807_3354">just to rap things up, what I ended up doing was this:</span></div><div dir="ltr" id="yui_3_16_0_1_1422459573807_3043"><span id="yui_3_16_0_1_1422459573807_3336"><a href="http://stackoverflow.com/questions/2008777/convert-a-string-into-a-fun" id="yui_3_16_0_1_1422459573807_3335">http://stackoverflow.com/questions/2008777/convert-a-string-into-a-fun</a><br></span></div><div dir="ltr" id="yui_3_16_0_1_1422459573807_3043"><br></div><div dir="ltr" id="yui_3_16_0_1_1422459573807_3043">which If I understand is based on the same data types you told me about.</div><div dir="ltr" id="yui_3_16_0_1_1422459573807_3043">Seeing the way a token and exprs of fun looks is very enlightening</div><div dir="ltr" id="yui_3_16_0_1_1422459573807_3043"><br></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Thursday, January 1, 2015 11:15 PM, Ulf Wiger <ulf@feuerlabs.com> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv1751120803"><div><br clear="none" class="yiv1751120803"><div><blockquote class="yiv1751120803" type="cite"><div class="yiv1751120803">On 31 Dec 2014, at 18:49, Dror Mein <<a rel="nofollow" shape="rect" class="yiv1751120803" ymailto="mailto:drormein@yahoo.com" target="_blank" href="mailto:drormein@yahoo.com">drormein@yahoo.com</a>> wrote:</div><br clear="none" class="yiv1751120803Apple-interchange-newline"><div class="yiv1751120803"><div class="yiv1751120803"><div class="yiv1751120803" style="background-color:rgb(255, 255, 255);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;"><div class="yiv1751120803" dir="ltr" id="yiv1751120803yui_3_16_0_1_1420046610900_3132">Thank you!</div><div class="yiv1751120803" dir="ltr" id="yiv1751120803yui_3_16_0_1_1420046610900_3096"><br clear="none" class="yiv1751120803"></div><div class="yiv1751120803" dir="ltr" id="yiv1751120803yui_3_16_0_1_1420046610900_3133">so parse_transform is responsible of returning {M,F,A} where A is something I don't yet understand :).</div><div class="yiv1751120803" dir="ltr" id="yiv1751120803yui_3_16_0_1_1420046610900_3133">is there a way to turn {M,F,A} to fun?</div></div></div></div></blockquote><div><br clear="none" class="yiv1751120803"></div><div>Well, if you want to dispatch it to another node, using a (compiled) fun is problematic. This is the main reason why I used {erl_eval, exprs, [Exprs, Bindings]}.</div><div class="yiv1751120803yqt5245993090" id="yiv1751120803yqtfd62039"><div><br clear="none" class="yiv1751120803"></div><br clear="none" class="yiv1751120803"><blockquote class="yiv1751120803" type="cite"><div class="yiv1751120803"><div class="yiv1751120803"><div class="yiv1751120803" style="background-color:rgb(255, 255, 255);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;"><div class="yiv1751120803" dir="ltr" id="yiv1751120803yui_3_16_0_1_1420046610900_3133">Is there a simpler way to create a fun that can be run on a different node?</div></div></div></div></blockquote></div><br clear="none" class="yiv1751120803"></div><div>A fun can be run on a different node if the module it was compiled in has a compatible version (it doesn’t have to be the exact same version).</div><div><br clear="none" class="yiv1751120803"></div><div>BR,</div><div>Ulf W</div><br clear="none" class="yiv1751120803"><div class="yiv1751120803">
<span class="yiv1751120803Apple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"></span><div class="yiv1751120803"><div class="yiv1751120803">Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.</div><div class="yiv1751120803"><a rel="nofollow" shape="rect" class="yiv1751120803" target="_blank" href="http://feuerlabs.com/">http://feuerlabs.com</a></div></div><div class="yiv1751120803yqt5245993090" id="yiv1751120803yqtfd39407"><div class="yiv1751120803"><br clear="none" class="yiv1751120803"></div><br clear="none" class="yiv1751120803Apple-interchange-newline">
</div></div><div class="yiv1751120803yqt5245993090" id="yiv1751120803yqtfd03837">
<br clear="none" class="yiv1751120803"></div></div></div><br><br></div> </div> </div> </div> </div></body></html>