[erlang-questions] public,private ets
Mon Dec 18 21:03:41 CET 2006
Out of curiosity, I did this:
7> ets:info(16, protection).
Further testing indicated that the order doesn't matter.
Repeating an option is fine, although it doesn't give it
[private,public] will also result in a private tab.
ets:new(tab, [private,protected]) will give a ... you guessed it:
ets:new(tab, [protected, public]) then of course results in a
The documentation doesn't state what should happen when conflicting
options are given. Personally, I'd like for the interface to be a
little bit less entertaining, and simply forbid conflicting options.
More information about the erlang-questions