<div dir="ltr">Hi Bengt,<div><br></div><div>You have to extract this information from beam_lib:chunks(BEAM, [abstract_code]) by means of erl_syntax_lib:fold/3 to keep only the typespecs. It would be nice to have a higher-level library that gives access to these internals.</div><div><br></div><div>regards,</div><div>Vlad</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 10, 2015 at 8:23 AM, Bengt Kleberg <span dir="ltr"><<a href="mailto:bengt.kleberg@ericsson.com" target="_blank">bengt.kleberg@ericsson.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings,<br>
<br>
How do I find type information at run time?<br>
<br>
A very nice Erlang module takes an options list. The options are -type defined and -export_type'ed.<br>
How do another module get that information during run time?<br>
<br>
I thought that it might be in very_nice:module_info(<u></u>attributes), but no luck.<br>
<br>
<br>
bengt<br>
<br>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
</blockquote></div><br></div>