[erlang-questions] Embed a pid into string to be dynamically compiled
Thu Apr 18 09:48:14 CEST 2013
Unfortunately not. The function is called from some macros and the
function is either a do-nothing one or compiled to use the Pid.
On 4/18/2013 10:44 AM, Bengt Kleberg wrote:
> Would it be possible for you to build the module with an interface
> function that accepts the pid as its argument?
> On Thu, 2013-04-18 at 10:38 +0300, Martin Dimitrov wrote:
>> I need to build dynamically a module. Inside one of its functions, it
>> has to send a message to Pid. How to compile it? The easiest solution I
>> can think of is to do pid_to_list(Pid) and inside the function Pid =
>> list_to_pid("<0.22.0>") but I really would like to avoid these extra
>> erlang-questions mailing list
More information about the erlang-questions