"raw" or "verbatim" PIDs?

Jon Slenk jonslenk@REDACTED
Fri Jul 7 00:54:07 CEST 2006

Ah, I finally figured out that I can use list_to_pid(), although there are 
dire warnings in the documentation that it and pid_to_list() should not be 
used in application code. (Is there a "constructor" for PIDs, or does one 
have to use list_to_pid()?)


----- Original Message ----- 
From: "Jon Slenk" <jonslenk@REDACTED>
To: <erlang-questions@REDACTED>
Sent: Thursday, July 06, 2006 1:40 PM
Subject: "raw" or "verbatim" PIDs?

> (I've been Googling and looking through the archives, but haven't hit an 
> explanation/answer so far.)
> 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?
> many thanks,
> -Jon.

More information about the erlang-questions mailing list