[erlang-bugs] dets:match_object/1 cannot pass '$end_of_table' as the parameter.

Zichen Cao zichen@REDACTED
Thu Jun 16 19:43:26 CEST 2011


Hi,

I was testing ets and dets, and I found that they behave differently on the functions ets:match_object/1 and dets:match_object/1.

1> ets:match_object('$end_of_table').
'$end_of_table'
2> dets:match_object('$end_of_table').
** exception error: bad argument
     in function  dets:match_object/1
        called as dets:match_object('$end_of_table')

When passing '$end_of_table' as the parameter, the shell threw an exception. This maybe not what we want.

Zichen



More information about the erlang-bugs mailing list