ets:new/2
is supposed to return a table identifier of typ tid()
. That identifier should be sent to other ets
functions to tell what table you are working on.
The identifier now happens to be an integer, but you should not count on that (you cannot add two identifiers together, for example). Only ever use it as an ETS table identifier.