[erlang-questions] Registered names and pids

Igor Ribeiro Sucupira igorrs@REDACTED
Wed May 14 22:21:36 CEST 2008


On Wed, May 14, 2008 at 2:20 PM, DougEdmunds <dougedmunds@REDACTED> wrote:
>
> Having wasted a lot of time on this question a couple of days
> before the post, I vote whereis/1 as the most non-intuitively
> named standard function.

My thoughts were the same after I saw that function (when learning
Erlang from Joe Armstrong's book).  :-)
But I'm lucky for having learnt it before I needed to use it.  :-)

Igor.

> Better would be waldo/1 (at least that's a name).  :)
>
> -dae
>
>
> Anders Nygren wrote:
>> On Tue, May 13, 2008 at 9:59 PM, Deryk Barker <dbarker@REDACTED> wrote:
>>> Maybe I shouldn't need to know this, but I can't find any obvious way:
>>>  is it possible, given the name of a registered process, to find its pid:
>>>  a) on the same nod b) on another node?
>>>
>>>  Merci.
>>
>> Locally registered name
>> whereis(Name)
>>
>> Globally registered name
>> global:whereis_name(Name)
>>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list