<br>On Monday, June 18, 2012, Samuel  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Thank you all, I ended up using this one.<br>
><br>
>> F = hello_test_, Fun = fun ?MODULE:F/0.<br>
<br>
Note that this is not exactly what you were trying to do. I guess you<br>
were trying to create a fun to call a local (possibly unexported<br>
function).</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote><div><br></div><div>no, this is exactly what I wanted to do. I have a function name as an atom in a variable, and I needed a Fun reference out of it.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Your problem was that instead of a fun you defined an atom:<br>
<br>
2> FunName = 'hello_test_/0'.<br>
'hello_test_/0'<br>
<br>
Anything enclosed in '' is an atom. What you were trying to do is probably<br>
<br>
2> FunName = fun hello_test_/0.</blockquote><div><br></div>no, believe it or not but I actually may know the difference between an atom and a function. no matter how incredible this may sound.<div><br></div><div>:)</div>
<div><br></div><div>...r.<span></span></div>