pid/1 is an Erlang function exported by "age_system" module. This function works like the original erlang:whereis/1 with two improvements: ✓When called without parameter it returns the invoker's PID (eq. to self()). ✓Accepts as parameter any atom or PID or Port ID, so you don't need to worry what your formal parameter refers to. You just need to check the result do you have a pid()/port() or not. |
|
|