Message from discussion
Copy function from one Module to another
Received: by 10.205.126.4 with SMTP id gu4mr1895388bkc.8.1344957324253;
Tue, 14 Aug 2012 08:15:24 -0700 (PDT)
X-BeenThere: erlang-programming@googlegroups.com
Received: by 10.204.130.131 with SMTP id t3ls439456bks.9.gmail; Tue, 14 Aug
2012 08:15:23 -0700 (PDT)
Received: by 10.205.126.4 with SMTP id gu4mr1895381bkc.8.1344957323883;
Tue, 14 Aug 2012 08:15:23 -0700 (PDT)
Received: by 10.205.126.4 with SMTP id gu4mr1895380bkc.8.1344957323830;
Tue, 14 Aug 2012 08:15:23 -0700 (PDT)
Return-Path: <erlang-questions-boun...@erlang.org>
Received: from hades.cslab.ericsson.net (hades.cslab.ericsson.net. [192.121.151.104])
by gmr-mx.google.com with ESMTP id e23si659210bks.0.2012.08.14.08.15.23;
Tue, 14 Aug 2012 08:15:23 -0700 (PDT)
Received-SPF: pass (google.com: domain of erlang-questions-boun...@erlang.org designates 192.121.151.104 as permitted sender) client-ip=192.121.151.104;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of erlang-questions-boun...@erlang.org designates 192.121.151.104 as permitted sender) smtp.mail=erlang-questions-boun...@erlang.org; dkim=neutral (body hash did not verify) header...@gmail.com
Received: from hades.cslab.ericsson.net (hades [192.121.151.104])
by hades.cslab.ericsson.net (Postfix) with ESMTP id 49F225C0B3;
Tue, 14 Aug 2012 17:15:18 +0200 (CEST)
X-Original-To: erlang-questi...@erlang.org
Delivered-To: erlang-questi...@erlang.org
Received: from mail-gg0-f181.google.com (mail-gg0-f181.google.com
[209.85.161.181])
by hades.cslab.ericsson.net (Postfix) with ESMTP id 1ED665C011
for <erlang-questi...@erlang.org>; Tue, 14 Aug 2012 17:15:17 +0200 (CEST)
Received: by ggmb6 with SMTP id b6so661688ggm.40
for <erlang-questi...@erlang.org>; Tue, 14 Aug 2012 08:15:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:cc:content-type;
bh=58hlnt6GJCFogKZ5t03QO1ZEC0VbIc8Eywio03mUCpc=;
b=bxMjtOGGEwxw3YRCKKKKM/ODcB12QTnTdpTZBKaru4Q5XI+iIR9/fCXzNSfr4mCDyY
QJNam3IxEy+qmxa9bIdDezQ4JqmVwa7TaKfxJ/kradfu5UgWaqSJIWhGzHjKSY9Esgk+
ci2nOjg5I8Txcx9F/6KOby2k3OBji1Weln3Xclp/GQe2PpVEsQEdgb97JAs/d/bd0lpK
Zdewm9rlYFXpCtTdT43oEQcjPrXnYiSYMFN/xfRM5+ZwFTDucjzQrXH/H67KYOqTfOnS
OmOK42gprvsY1l0qv5d0k8E46HfkzFgraZaPjYpsSNTP5aSyusKO5wC0sqP42MK+iM6s
6Atw==
MIME-Version: 1.0
Received: by 10.50.100.129 with SMTP id ey1mr12102569igb.35.1344957315802;
Tue, 14 Aug 2012 08:15:15 -0700 (PDT)
Received: by 10.42.224.4 with HTTP; Tue, 14 Aug 2012 08:15:15 -0700 (PDT)
In-Reply-To: <CAPTXyXdKrd3CBxP5WdD9L2f+bGjX7TM4Gx2e=tOnpthaLNy...@mail.gmail.com>
References: <CALGEZ2dp5MwLJofaFvJqf0L3pxgJDS6jSz=dZMTpj1nFqbA...@mail.gmail.com>
<CAPTXyXdKrd3CBxP5WdD9L2f+bGjX7TM4Gx2e=tOnpthaLNy...@mail.gmail.com>
Date: Tue, 14 Aug 2012 17:15:15 +0200
Message-ID: <CALGEZ2ci+GsK20GMgSAZiRbfoW=PuvwbwBxtUPvJU-Ew+fv...@mail.gmail.com>
From: Tyron Zerafa <tyron.zer...@gmail.com>
To: Jesse Gumm <g...@sigma-star.com>
Cc: erlang-questi...@erlang.org
Subject: Re: [erlang-questions] Copy function from one Module to another
X-BeenThere: erlang-questi...@erlang.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: General Erlang/OTP discussions <erlang-questions.erlang.org>
List-Unsubscribe: <http://erlang.org/mailman/options/erlang-questions>,
<mailto:erlang-questions-requ...@erlang.org?subject=unsubscribe>
List-Archive: <http://erlang.org/pipermail/erlang-questions>
List-Post: <mailto:erlang-questi...@erlang.org>
List-Help: <mailto:erlang-questions-requ...@erlang.org?subject=help>
List-Subscribe: <http://erlang.org/mailman/listinfo/erlang-questions>,
<mailto:erlang-questions-requ...@erlang.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============7725972801701334873=="
Errors-To: erlang-questions-boun...@erlang.org
Sender: erlang-questions-boun...@erlang.org
--===============7725972801701334873==
Content-Type: multipart/alternative; boundary=e89a8f3b9c110be5c604c73b4730
--e89a8f3b9c110be5c604c73b4730
Content-Type: text/plain; charset=ISO-8859-1
Hey Jesse
I need something stronger than just import. I need to put a bunch of
functions from different modules into a single one and transfer this to a
remote node. Then I want to be able to use these functions from the remote
node.
If I simply use import, I will not be able to use them on the remote node
without explicitly transferring all the modules to which the functions
belong to.
On Tue, Aug 14, 2012 at 5:10 PM, Jesse Gumm <g...@sigma-star.com> wrote:
> That sounds like you're looking for
>
> -import(Module, Functions).
>
> http://www.erlang.org/doc/reference_manual/modules.html
>
> --
> Jesse Gumm
> Owner, Sigma Star Systems
> 414.940.4866 || sigma-star.com || @jessegumm
> On Aug 14, 2012 9:56 AM, "Tyron Zerafa" <tyron.zer...@gmail.com> wrote:
>
>> Hey all,
>> Is there any mechanism in Erlang which I can use to copy functions
>> from one module to another? So, if I have module *A* containing
>> functions *a*, *b* and *c*, is there any way in which I can copy *a* to
>> module B?
>>
>> Thanks
>> Tyron
>>
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questi...@erlang.org
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>>
--
Best Regards,
Tyron Zerafa
--e89a8f3b9c110be5c604c73b4730
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<br>Hey Jesse<div>=A0 =A0 I need something stronger than just import. I nee=
d to put a bunch of functions from different modules into a single one and =
transfer this to a remote node. Then I want to be able to use these functio=
ns from the remote node.=A0</div>
<div>If I simply use import, I will not be able to use them on the remote n=
ode without=A0explicitly=A0transferring all the modules to which the functi=
ons belong to.</div><div><br></div><div><br><div class=3D"gmail_quote">On T=
ue, Aug 14, 2012 at 5:10 PM, Jesse Gumm <span dir=3D"ltr"><<a href=3D"ma=
ilto:g...@sigma-star.com" target=3D"_blank">g...@sigma-star.com</a>></sp=
an> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><p>That sounds like you're looking for</=
p>
<p>-import(Module, Functions).</p>
<p> <a href=3D"http://www.erlang.org/doc/reference_manual/modules.html" tar=
get=3D"_blank">http://www.erlang.org/doc/reference_manual/modules.html</a> =
</p>
<p>--<br>
Jesse Gumm<br>
Owner, Sigma Star Systems<br>
<a href=3D"tel:414.940.4866" value=3D"+14149404866" target=3D"_blank">414.9=
40.4866</a> || <a href=3D"http://sigma-star.com" target=3D"_blank">sigma-st=
ar.com</a> || @jessegumm</p>
<div class=3D"gmail_quote"><div><div class=3D"h5">On Aug 14, 2012 9:56 AM, =
"Tyron Zerafa" <<a href=3D"mailto:tyron.zer...@gmail.com" targ=
et=3D"_blank">tyron.zer...@gmail.com</a>> wrote:<br type=3D"attribution"=
></div>
</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l=
eft:1px #ccc solid;padding-left:1ex"><div><div class=3D"h5">
Hey all,<div>=A0 =A0 Is there any mechanism in Erlang which I can use to co=
py functions from one module to another? So, if I have module <b>A</b> cont=
aining functions=A0<b>a</b>, <b>b</b> and <b>c</b>, is there any way in whi=
ch I can copy <b>a</b> to module B?<br clear=3D"all">
<div><br></div><div>Thanks=A0</div><div>Tyron</div><br>
</div>
<br></div></div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href=3D"mailto:erlang-questi...@erlang.org" target=3D"_blank">erlang-que=
sti...@erlang.org</a><br>
<a href=3D"http://erlang.org/mailman/listinfo/erlang-questions" target=3D"_=
blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>Best Regards=
,<div>Tyron Zerafa</div><br>
</div>
--e89a8f3b9c110be5c604c73b4730--
--===============7725972801701334873==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
--===============7725972801701334873==--