Documentation and uses of ets:info/1

Kostis Sagonas <>
Tue Apr 25 18:49:44 CEST 2006


The documentation of 'ets:info/1' reads:

	info(Tab) -> tuple() | undefined

while it should probably read:

	info(Tab) -> [tuple()] | undefined

This causes confusion in other parts of Erlang/OTP.
For example, in 'snmpa_general_db', there is code which reads:

info({ets, Name, _}) ->
    case ets:info(Name) of
	T when tuple(T) ->
	    tuple_to_list(T);
	L ->
	    L
    end.


Another discrepancy discovered by Dialyzer...


Kostis




More information about the erlang-questions mailing list