On 10/12/2007, <b class="gmail_sendername">Andreas Hillqvist</b> <<a href="mailto:andreas.hillqvist@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">andreas.hillqvist@gmail.com</a>> wrote:
<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>    make_fun(Module, Function, Arity) -><br>        fun Module:Function/Arity.</blockquote><div><br>You can actually do it today:<br><br>make_fun(M, F, 0) -> fun () -> M:F() end;<br>make_fun(M, F, 1) -> fun (A1) -> M:F(A1) end;
<br>make_fun(M, F, 2) -> fun (A1, A2) -> M:F(A1, A2) end;<br>...<br><br>Not beautiful but it works. The only limitation is that you can only reach exported functions. Which is as it should be.<br><br>Robert<br></div>

<br></div><br>