[erlang-questions] What is a tid()?

Per Hedeland per@REDACTED
Wed Apr 28 22:41:53 CEST 2010


Kostis Sagonas <kostis@REDACTED> wrote:
>
>Per Hedeland wrote:
>> $ erlc test.erl
>> ./test.erl:5: referring to built-in type tid as a remote type; please take out the module name
>
>tid() is a built-in opaque type for ETS table identifiers.

Thanks - maybe it's already in the queue for an update to
http://www.erlang.org/doc/reference_manual/typespec.html?

>These cannot be redefined.
>
>However, the warning you have run into predates the introduction of 
>remote types and is probably a bug.  Although one should currently use 
>tid() to refer to ets:tid(), it should be possible to use a tid() type 
>that one of their modules export.

Well, it can't be defined in the other module anyway, can it? If so
that's perfectly OK by me, and the error is appropriate - it's just a
documentation omission.

--Per


More information about the erlang-questions mailing list