register BIF

Wes James comptekki@REDACTED
Tue Mar 15 21:57:54 CET 2011


If I do:

Pid=timer2:timeout(0,0).

register(blah, Pid).

I get:

** exception error: bad argument
     in function  register/2
        called as register(blah,<0.33.0>)

If I do:

register(blah, timer2:timeout(0,0)).

it returns "true", but if I do:

whereis(blah).

then it returns undefined.

How does register() work?

thx,

-wes


More information about the erlang-questions mailing list