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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -