process communication

Wes James <>
Wed Mar 16 05:04:17 CET 2011

>From this site:

I did this:

erl -name  -cookie secret

1> register(adder, c4_adder:start()).
2> c4_adder:add(10, adder).

$ erl -name  -cookie secret

line line copied from page -> 1> c4_adder:add(10, {adder, ''}).
line line copied from page -> {ok,20}

but when I do the last line, I get:

()1> c4_adder:add(10, {adder, ''}).

when I do regs().

I see nothing.

If I do nregs().  I see adder.  Why is alice not talking to bob?



More information about the erlang-questions mailing list