[erlang-questions] ?DATE and ?TIME MACROs

harry mpharrison@REDACTED
Tue Oct 7 17:09:11 CEST 2008

Should I post on erlang-bugs to get module_info() and
get_module_info() documented? They seem really useful.

(I tried it & the info survives beam_lib:strip())



On Oct 7, 3:19 pm, Richard Carlsson <richa...@REDACTED> wrote:

> That used to be true, but these days they are simply
> wrappers around a couple of built-in (undocumented?)
> functions, like this:
> module_info() -> erlang:get_module_info(?MODULE).
> module_info(Tag) -> erlang:get_module_info(?MODULE, Tag).
> (Since the metadata is already loaded from a chunk in the
> beam file, there is no need to duplicate it in the code.)
> But the compiler inserts the functions, yes.
>     /Richard
> _______________________________________________
> erlang-questions mailing list
> erlang-questi...@REDACTED://www.erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list