Liste konvertieren zu pid-Funktion list_to_pid/1 Einschränkung

Wenn der test-open-source-Projekt 'gproc' - Funktion,
Ich fand list_to_pid ist ok für die lokale pid, und nicht ok für remote-pid. Mein erlang-runtime ist R15B.

(dist_test_n2@yus-iMac.local)29> D = list_to_pid("<0.239.0>").
<0.239.0>
(dist_test_n2@yus-iMac.local)30> D == self(). %% equal here
true
(dist_test_n2@yus-iMac.local)31> f(E).
ok
(dist_test_n2@yus-iMac.local)32> E = gproc:where(Name).       
<8969.239.0>
(dist_test_n2@yus-iMac.local)33> F = list_to_pid("<8969.239.0>").
<8969.239.0>
(dist_test_n2@yus-iMac.local)34> F == E. %% not equal here
false

Vom Benutzerhandbuch über diese Funktion, es gibt keine solche Einschränkung. Ist es bug?

InformationsquelleAutor Chen Yu | 2012-05-07
Schreibe einen Kommentar