[erlang-questions] simple ets question
t ty
tty.erlang@REDACTED
Wed Jan 23 20:38:07 CET 2008
To be able to use the name 'test' you need to pass in 'named_table' as
one of the options.
1> Tid = ets:new(test,[named_table]).
Regards
t
On Jan 23, 2008 1:27 PM, Roger Critchlow <rec@REDACTED> wrote:
> 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>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list