[erlang-questions] ?DATE and ?TIME MACROs

Mats Cronqvist mats.cronqvist@REDACTED
Tue Oct 7 15:31:16 CEST 2008


harry wrote:
> Excellent, thanks!
>
> I'm struggling to find docs on module_info.
> I'm guessing erlc inserts it into each module

yes.

> and it uses beam_lib?
>   

 afaik, no. it's just a regular exported function that would look 
something like this in Erlang.

module_info() -> <list of tagged tuples>.
module_info(Tag) ->
 try proplists:get_value(Tag,module_info())
 catch _:_ -> exit(badarg)
 end.

 where <list of tagged tuples> is a constant term.
 this is just speculation on my part though.

  mats



More information about the erlang-questions mailing list