<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">That link is a bit old.  The code is
      here <a class="moz-txt-link-freetext" href="https://gist.github.com/okeuday/76724b20dca62c27420f">https://gist.github.com/okeuday/76724b20dca62c27420f</a><br>
      <br>
      On 09/19/2014 05:56 AM, Vlad Dumitrescu wrote:<br>
    </div>
    <blockquote
cite="mid:CAA-EFXuCjVHDuBce1b0EE79oEXGGmNxVLPDA-1WkRxLV2=tRmw@mail.gmail.com"
      type="cite">
      <div dir="ltr">See also <a moz-do-not-send="true"
href="http://erlang.org/pipermail/erlang-questions/2011-March/056896.html">http://erlang.org/pipermail/erlang-questions/2011-March/056896.html</a>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Sep 19, 2014 at 2:52 PM, Vlad
          Dumitrescu <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:vladdu55@gmail.com" target="_blank">vladdu55@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div class="gmail_extra">
                <div>
                  <div class="h5">
                    <div class="gmail_quote">On Fri, Sep 19, 2014 at
                      2:33 PM, semmit mondo <span dir="ltr"><<a
                          moz-do-not-send="true"
                          href="mailto:semmitmondo@freemail.hu"
                          target="_blank">semmitmondo@freemail.hu</a>></span>
                      wrote:<br>
                      <blockquote class="gmail_quote" style="margin:0 0
                        0 .8ex;border-left:1px #ccc
                        solid;padding-left:1ex">
                        <div> <br>
                        </div>
                        <div>Is it possible to figure out the spec of
                          functions in a compiled module?</div>
                        <div> </div>
                        <div>Given a module name I want to be able to
                          know what is the return type</div>
                        <div>of a function in that module and what are
                          the types of the arguments.</div>
                        <div>But all I know at the moment is the arity
                          of the function (via module_info).</div>
                        <div>Is that info lost when compiling? </div>
                      </blockquote>
                    </div>
                    <div class="gmail_extra"><br>
                    </div>
                  </div>
                </div>
                If the module was compiled with debug info, then you can
                call beam_lib:chunks(Module, [abstract_code]) and
                traverse the result looking for the spec attributes. </div>
              <div class="gmail_extra"><br>
              </div>
              <div class="gmail_extra">I would have expected that the
                specs would be listed in the 'attributes' chunk, but it
                looks that they aren't. Is there a reason for that?</div>
              <div class="gmail_extra"><br>
              </div>
              <div class="gmail_extra">regards,</div>
              <div class="gmail_extra">Vlad</div>
              <div class="gmail_extra"><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>