[erlang-questions] ?DATE and ?TIME MACROs

harry mpharrison@REDACTED
Tue Oct 7 16:32:16 CEST 2008


Cheers,

I had a dig around in the source in compile, and found some other
possible tags.

But, I wonder, if this is not documented, might it change in the
future?

On Oct 7, 2:31 pm, Mats Cronqvist <mats.cronqv...@REDACTED> wrote:
> 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
> _______________________________________________
> erlang-questions mailing list
> erlang-questi...@REDACTED://www.erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list