]> Repositorios git - scryer-prolog.git/commitdiff
expand call goals as call goals (#1114) expand_call_goals_as_call_goals origin/expand_call_goals_as_call_goals
authorMark Thom <[email protected]>
Sun, 28 Nov 2021 17:27:50 +0000 (10:27 -0700)
committerMark Thom <[email protected]>
Sun, 28 Nov 2021 17:27:50 +0000 (10:27 -0700)
src/loader.pl

index b64b95533a92d1523b4ad571942ac45a34c8c702..8872e6f495acdb2f3a95ab3ebf153d593f816ac3 100644 (file)
@@ -795,7 +795,7 @@ call_clause(G, G0) :-
        load_context(M)
     ;  true
     ),
-    expand_goal(M:G1, M, G0).
+    expand_goal(call(M:G1), M, call(G0)).
 
 
 call(G) :-
@@ -840,7 +840,7 @@ call_clause(G, Args, _, G0) :-
     ),
     append(As, Args, As1),
     G2 =.. [F | As1],
-    expand_goal(M:G2, M, G0).
+    expand_goal(call(M:G2), M, call(G0)).
 
 
 call(A,B) :-