Skip to content

Commit

Permalink
Merge pull request #7 from spawngrid/fix-tuple-call-r16
Browse files Browse the repository at this point in the history
Fixes deprecated tuple call syntax issue in seresye_agenda
  • Loading branch information
ericbmerritt committed Feb 1, 2012
2 parents b1779e0 + 130c2a4 commit 75d333b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/seresye_agenda.erl
Original file line number Diff line number Diff line change
Expand Up @@ -310,5 +310,8 @@ exec(EngineState0, R) ->

%% Fun = {Module, Function} or
%% Fun = fun (...)
execute_rule(EngineState, {Fun, Args, _, _}) ->
execute_rule(EngineState, {{M,F}, Args, X1, X2}) ->
L = length(Args) + 1,
execute_rule(EngineState, {fun M:F/L, Args, X1, X2});
execute_rule(EngineState, {Fun, Args, _, _}) when is_function(Fun) ->
apply(Fun, [EngineState | Args]).

0 comments on commit 75d333b

Please sign in to comment.