[erlang-questions] [erlang-quiestions] Documentation bug or not?
Robert Virding
rvirding@REDACTED
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 <zerthurd@REDACTED>
> 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
> erlang-questions@REDACTED
> 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.htm>
More information about the erlang-questions
mailing list