[erlang-questions] Question about receive

Jani Launonen <>
Tue Jun 26 22:33:53 CEST 2007


Hello,

how about erlang:make_ref()?

 From the online manuals (http://www.erlang.org/doc/man/ 
erlang.html#make_ref/0)
"make_ref() -> ref()
Returns an almost unique reference.

The returned reference will reoccur after approximately 2^82 calls;  
therefore it is unique enough for practical purposes.

 > make_ref().
#Ref<0.0.0.135>"

Hope this helps.
Jani L

Matej Kosik kirjoitti 26.6.2007 kello 23.18:

> Hi,
>
> Does Erlang provide some convenient way of generating unique tags?  
> (objects that cannot have duplicates). With that, I would be able  
> to ensure reception of messages from a one chosen process (if there  
> is no better way to do it).
>
> Btw. Thank you for your answers. (your previous answers did help me).
> -- 
> Matej Kosik
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list