[erlang-questions] list_to_pid() surprise

Ulf Wiger ulf.wiger@REDACTED
Fri Feb 27 16:31:23 CET 2009


I'm not sure whether to report this as a bug (perhaps there's
a good reason for it...?)

Erlang (BEAM) emulator version 5.6.5 [source] [async-threads:0] [hipe] [kernel-poll:false]
...
11> pid_to_list(hd(v(6))).
"<8288.15785.86>"
12> list_to_pid(pid_to_list(hd(v(6)))).
** exception error: bad argument
     in function  list_to_pid/1
        called as list_to_pid("<8288.15785.86>")

If this is intentional, can someone explain why?

BR,
Ulf W
-- 
Ulf Wiger
CTO, Erlang Training & Consulting Ltd.
http://www.erlang-consulting.com



More information about the erlang-questions mailing list