I was thinking about the latter where I will collect all functions in a record and send that.<div>The problem is that I will have to come up with a way to extract a function form a module, that is why I was checking out whether there is anything already implemented in Erlang. <br>
<br><div class="gmail_quote">On Tue, Aug 14, 2012 at 5:25 PM, Siraaj Khandkar <span dir="ltr"><<a href="mailto:siraaj@khandkar.net" target="_blank">siraaj@khandkar.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How about sending a message with a fun? Or collecting desired funs in<br>
a record and sending that?<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Tue, Aug 14, 2012 at 11:15 AM, Tyron Zerafa <<a href="mailto:tyron.zerafa@gmail.com">tyron.zerafa@gmail.com</a>> wrote:<br>
><br>
> Hey Jesse<br>
> I need something stronger than just import. I need to put a bunch of<br>
> functions from different modules into a single one and transfer this to a<br>
> remote node. Then I want to be able to use these functions from the remote<br>
> node.<br>
> If I simply use import, I will not be able to use them on the remote node<br>
> without explicitly transferring all the modules to which the functions<br>
> belong to.<br>
><br>
><br>
> On Tue, Aug 14, 2012 at 5:10 PM, Jesse Gumm <<a href="mailto:gumm@sigma-star.com">gumm@sigma-star.com</a>> wrote:<br>
>><br>
>> That sounds like you're looking for<br>
>><br>
>> -import(Module, Functions).<br>
>><br>
>> <a href="http://www.erlang.org/doc/reference_manual/modules.html" target="_blank">http://www.erlang.org/doc/reference_manual/modules.html</a><br>
>><br>
>> --<br>
>> Jesse Gumm<br>
>> Owner, Sigma Star Systems<br>
>> <a href="tel:414.940.4866" value="+14149404866">414.940.4866</a> || <a href="http://sigma-star.com" target="_blank">sigma-star.com</a> || @jessegumm<br>
>><br>
>> On Aug 14, 2012 9:56 AM, "Tyron Zerafa" <<a href="mailto:tyron.zerafa@gmail.com">tyron.zerafa@gmail.com</a>> wrote:<br>
>>><br>
>>> Hey all,<br>
>>> Is there any mechanism in Erlang which I can use to copy functions<br>
>>> from one module to another? So, if I have module A containing functions a, b<br>
>>> and c, is there any way in which I can copy a to module B?<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best Regards,<div>Tyron Zerafa</div><br>
</div>