Object fails calling methods
-
Philipp Pirozhkov
this is most probably the problem i though is lambda related:
class Context def context(title, lambda) @context_title = title lambda() def local(title) Local.puts([@context_title, title].join('/')) Context.start('a', fun do local('b') )this should probably work fine and output 'a/b', but it fails too:
exception: {exception,{error,undef}} stacktrace: [{'Context',start,[{string,<<"a">>},#Fun<erl_eval.20.67289768>]}, {erl_eval,do_apply,5}, {reia_erl,erl_funcall,3}, {'Eval',exprs,2}, {'Eval',string,1}, {'Loader',eval_input,1}, {init,start_it,1}, {init,start_em,1}] -
Tony Arcieri
- State changed from new to resolved
Phew... this required a lot of sneaking state around internally. "Local" method invocations are now implemented as function calls (as a gen_server can't call itself). This also has the advantage that HiPE should be able to inline these sorts of calls.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.