[erlang-questions] simple ets question
Roger Critchlow
rec@REDACTED
Wed Jan 23 19:27:35 CET 2008
Good day all --
Can anyone explain the following to me? This is using a copy of
otp_src_R12B-0 that I compiled under Ubuntu yesterday.
I expected statement #2 to return the same value as statement #3.
The actual problem arises using another ets: function that specifies a
Tid | atom as the ets table identifier, and it throws a bad argument
error.
Many thanks,
-- rec --
--------
Erlang (BEAM) emulator version 5.6 [source] [smp:2] [async-threads:0]
[hipe] [kernel-poll:false]
Eshell V5.6 (abort with ^G)
1> Tid = ets:new(test,[]).
15
2> ets:info(test).
undefined
3> ets:info(Tid).
[{memory,288},
{owner,<0.31.0>},
{name,test},
{size,0},
{node,nonode@REDACTED},
{named_table,false},
{type,set},
{keypos,1},
{protection,protected}]
4>
More information about the erlang-questions
mailing list