<html><head></head><body bgcolor="#FFFFFF"><div>fun M:F/A<br><br>Sent from my iPhone</div><div><br>Le 17 juin 2012 à 18:11, Roberto Ostinelli <<a href="mailto:roberto@widetag.com">roberto@widetag.com</a>> a écrit :<br><br></div><div></div><blockquote type="cite"><div>Dear list,<div><br></div><div>is it possible to reference a fun from its atom name? For instance:</div><div><br></div><div><div><font face="courier new, monospace">1> eunit:test({generator, fun hello_test_/0}).</font></div>
</div><div><br></div><div>-> everything is ok.</div><div><br></div><div><font face="courier new, monospace">2> FunName = 'hello_test_/0'.</font></div><div><div><font face="courier new, monospace">'hello_test_/0'</font></div>
</div><div><font face="courier new, monospace">3> eunit:test({generator, fun FunName}).</font></div><div><font face="courier new, monospace">* 1: syntax error before: '}'</font></div><div><br></div><div>Any ideas?</div>
<div><br></div><div>Thank you,</div><div><br></div><div>r.</div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></body></html>