[erlang-questions] Accessing 'spec' information at runtime

Yurii Rashkovskii yrashk@REDACTED
Tue Mar 8 16:46:58 CET 2011


Compile with debug_info and use beam_lib then, you'll have attributes like:

}attribute,6,type,{agner_repo,{type,6,string,[]},[]}},

and 

{attribute,115,spec,
           {{defaults,1},
            [{type,115,'fun',
                   [{type,115,product,[{type,115,agner_package_name,[]}]},
                    {type,115,agner_spec,[]}]}]}}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110308/747fc4b3/attachment-0001.htm>


More information about the erlang-questions mailing list