Wednesday, May 20, 2009

make_ref() hint

BIF make_ref() returns built-in type ref() which is unique on this node. Type ref() contains name of node if erl started with -sname or -name parameters, therefore we can use ref() in distributed systems for some unique value through all nodes. BTW, keep in mind that reference will re-occur after approximately 2^82 calls.

No comments: