[erlang-questions] Embed a pid into string to be dynamically compiled

Martin Dimitrov <>
Thu Apr 18 09:38:28 CEST 2013


Hello,

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
operations.

Thanks,

Martin


More information about the erlang-questions mailing list