<br><font size=2 face="sans-serif">Thanks for your help, it does the trick for me : with this (rather well-hidden) 'module_info' function, I can collect the atoms designating exported functions, which I can then use, with the 'apply' BIF, to execute these functions. Hence a kind of reflection can be achieved this way.</font>
<br>
<br><font size=2 face="sans-serif">Thanks again,</font>
<br>
<br><font size=2 face="sans-serif">Olivier.</font>
<br><font size=2 face="sans-serif">---------------------------<br>
Olivier Boudeville<br>
<br>
EDF R&D : 1, avenue du Général de Gaulle, 92140 Clamart, France<br>
Département SINETICS, groupe ASICS (I2A), bureau C-052<br>
Office : 33 1 47 65 59 58 / Mobile : 33 6 16 83 37 22 / Fax : 33 1 47 65 34 24</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>erlang-questions-bounces@erlang.org</b></font>
<p><font size=1 face="sans-serif">05/07/2007 12:21</font>
<br>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> Pour : erlang-questions@erlang.org</font>
<br><font size=1 face="sans-serif"> cc : (ccc : Olivier BOUDEVILLE/IMA/DER/EDFGDF/FR)</font>
<br><font size=1 face="sans-serif"> Objet : Re: [erlang-questions] Function-related BIFs</font></table>
<br>
<br>
<br><font size=2 face="Courier New">On 2007-07-05 12:13, Olivier BOUDEVILLE wrote:<br>
> <br>
> Hi,<br>
> <br>
> is there any way In Erlang to list programatically the functions <br>
> exported by a given module and/or to resolve a function name (ex : <br>
<br>
the first part is easy:<br>
<Module>:module_info(exports).<br>
<br>
<br>
bengt<br>
-- <br>
Those were the days...<br>
EPO guidelines 1978: "If the contribution to the known art resides<br>
solely in a computer program then the subject matter is not<br>
patentable in whatever manner it may be presented in the claims."<br>
_______________________________________________<br>
erlang-questions mailing list<br>
erlang-questions@erlang.org<br>
http://www.erlang.org/mailman/listinfo/erlang-questions<br>
</font>
<br>
<br>