Hi - <br><br>I tried out the parameterized module example in <a href="http://www.erlang.org/pipermail/erlang-questions/2007-May/026867.html">http://www.erlang.org/pipermail/erlang-questions/2007-May/026867.html</a> - I can compile the example and even create the module instance, but evaluating the functions returns badfun instead. I'm not sure where the issues are - any pointers are appreciated. I'm using
5.5.5 on linux. <br><br><font size="2"><font style="font-family: courier new,monospace;" size="2">Erlang (BEAM) emulator version 5.5.5 [source] [async-threads:0] [hipe] [kernel-poll:false]<br><br>Eshell V5.5.5 (abort with ^G)
<br>1> c(pmod).<br>{ok,pmod}<br>2> M = pmod:new(3,4).<br>{pmod,3,4}<br>3> M:sum().<br><br>=ERROR REPORT==== 2-Oct-2007::10:04:26 ===<br>Error in process <0.30.0> with exit value: {{badfun,{{pmod,3,4},sum}},[{shell,apply_fun,3},{shell,exprs,6},{shell,eval_loop,3}]}
<br><br>** exited: {{badfun,{{pmod,3,4},sum}},<br> [{shell,apply_fun,3},{shell,exprs,6},{shell,eval_loop,3}]} **<br>4> M:new_Y(5).<br><br>=ERROR REPORT==== 2-Oct-2007::10:09:13 ===<br>Error in process <0.38.0
> with exit value: {{badfun,{{pmod,3,4},new_Y}},[{shell,apply_fun,3},{shell,exprs,6},{shell,eval_loop,3}]}<br><br>** exited: {{badfun,{{pmod,3,4},new_Y}},<br> [{shell,apply_fun,3},{shell,exprs,6},{shell,eval_loop,3}]} **
<br>5></font><br><br>Thanks,<br>yc<br><br></font>