Erlang register process -
i try spawn new process , register it:
-module(db). -export([start/0]). start() -> register( db , spawn( db, abs, [-100])).
but when try in erlang shell:
1> db:start().
i see:
true (emacs@myhost)2> =error report==== 1-dec-2010::17:42:27 === error in process <0.112.0> on node 'emacs@myhost' exit value: {undef,[{db,abs,[-100]}]}
what's wrong?
thank you.
this fails because db:abs/1
not defined.
Comments
Post a Comment