[erlang-questions] Programming Erlang Exercise 8.11

igwan igwan@REDACTED
Thu Sep 20 09:06:22 CEST 2007


Oops, forget it, I clicked on send too fast

The function I proposed will not fail when calling it, but exit at a 
later time only when the second process happens to call register/2.
I'm interested in a correct/atomic solution too :)

igwan

igwan a écrit :
> start(AnAtom, Fun) ->
>     Fun2 = fun() -> register(AnAtom, self()), Fun() end,
>     spawn_link(Fun2).
>   




More information about the erlang-questions mailing list