<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 31 Dec 2014, at 18:49, Dror Mein <<a href="mailto:drormein@yahoo.com" class="">drormein@yahoo.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;" class=""><div dir="ltr" id="yui_3_16_0_1_1420046610900_3132" class="">Thank you!</div><div dir="ltr" id="yui_3_16_0_1_1420046610900_3096" class=""><br class=""></div><div dir="ltr" id="yui_3_16_0_1_1420046610900_3133" class="">so parse_transform is responsible of returning {M,F,A} where A is something I don't yet understand :).</div><div dir="ltr" id="yui_3_16_0_1_1420046610900_3133" class="">is there a way to turn {M,F,A} to fun?</div></div></div></div></blockquote><div><br class=""></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><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><div style="background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;" class=""><div dir="ltr" id="yui_3_16_0_1_1420046610900_3133" class="">Is there a simpler way to create a fun that can be run on a different node?</div></div></div></div></blockquote><br class=""></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 class=""></div><div>BR,</div><div>Ulf W</div><br class=""><div apple-content-edited="true" class="">
<span class="Apple-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-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><div class=""><div class="">Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.</div><div class=""><a href="http://feuerlabs.com" class="">http://feuerlabs.com</a></div></div><div class=""><br class=""></div></span><br class="Apple-interchange-newline">

</div>
<br class=""></body></html>