[erlang-questions] [ANN] Erlang/OTP 18.0-rc1 is available for testing.

Fred Hebert mononcqc@REDACTED
Fri Mar 27 01:23:52 CET 2015


On 03/26, Felix Gallo wrote:
>Does the OTP team have any intention to, or thoughts on, implementing
>'distributed' as a possible ModifierList entry for unique_integer/1,
>ensuring unique integers with respect to the visible nodes?

Sounds like you'd like {node(), Integer} or possibly {make_ref(), 
Integer}. If you have a value that is 'unique' for a node (as long as 
it's alove), then including something that uniquely identifies that node 
along with that node-unique value tends to give acceptable results.

Things are trickier if you want this to keep working over multiple node 
restarts.



More information about the erlang-questions mailing list