"raw" or "verbatim" PIDs?

Javier París javierparis@REDACTED
Fri Jul 7 00:54:18 CEST 2006

El Jueves, 6 de Julio de 2006 22:40, Jon Slenk escribió:
> I'm very new to Erlang, I'm just working my way through a tutorial. I
> spawned a process and was told that it has PID <0.47.0>, but I failed to
> assign that to a variable. Now, is there any way I can send a message to
> that PID by using the "raw" ID? I tried writing stuff like "<0.47.0> !
> foobar." or "0.47.0 ! foobar." in an attempt to mimic the code I've seen
> where people write something like "ThePid = spawn(...). ThePid ! foobar."
> However, the Erlang shell did not like my attempts :-) Is there a way to
> use "raw" PIDs, or must it be stored in a variable.

This way, for example:

list_to_pid("<0.47.0>") ! foobar.


More information about the erlang-questions mailing list