[erlang-questions] [erlang-quiestions] Documentation bug or not?

Robert Virding <>
Tue Dec 2 23:26:51 CET 2008


Hi,

IIRC it is because 'local' uses register, which can only take an atom for a
name, while 'global' uses the global registration module global which can
take any term for a name.

Robert

2008/12/1 Maxim Treskin <>

> Hello
>
> I found strange descriptions in man-files for gen_server and gen_fsm
> (possible in some other manuals).
>
> ----
>        start_link(Module, Args, Options) -> Result
>        start_link(FsmName, Module, Args, Options) -> Result
>
>               Types  FsmName = {local, Name} | {global, GlobalName}
>                       Name = atom()
>                       GlobalName = term()
> ----
>
> Name and GlobalName have different types: atom() and term().
> Is it right? Can I use any possible erlang term as name identifier?
>
>
> --
> Maxim Treskin
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081202/18531040/attachment.html>


More information about the erlang-questions mailing list