[erlang-questions] Parameterized modules shell regression in R11B-5

Hans Bolinder hans.bolinder@REDACTED
Wed Jul 4 14:31:22 CEST 2007


[Bob Ippolito:]
> In R11B-5 it seems that the shell no longer works with parameterized
> modules. It worked fine in R11B-4.
> 
> -module(parameterized, [A]).
> -export([test/0]).
> test() -> A.
> 
> 1> (parameterized:new(adsf)):test().
> ** exited: {{badfun,{{parameterized,adsf},test}},
>             [{shell,apply_fun,3},{shell,exprs,6},{shell,eval_loop,3}]} **

Thanks for the bug report.

Best regards,
Hans Bolinder, Erlang/OTP team

*** /usr/local/otp/releases/otp_beam_solaris8_r11b_patched/lib/stdlib-1.14.5/src/shell.erl	Tue Jun 12 14:19:50 2007
--- shell.erl	Wed Jul  4 14:28:42 2007
***************
*** 709,714 ****
--- 709,716 ----
      erlang:garbage_collect(Shell),
      catch erlang:garbage_collect(whereis(user)),
      erlang:garbage_collect();
+ apply_fun({M,F}, As, _Shell) ->
+     apply(M, F, As);
  apply_fun(MForFun, As, _Shell) ->
      apply(MForFun, As).



More information about the erlang-questions mailing list