]> Repositorios git - scryer-prolog.git/commitdiff
keep phrase goal qualified even if qualifier is a variable
authorMark Thom <[email protected]>
Fri, 17 Feb 2023 07:20:15 +0000 (00:20 -0700)
committerMark Thom <[email protected]>
Fri, 17 Feb 2023 07:20:15 +0000 (00:20 -0700)
src/lib/dcgs.pl

index 08870316eff5eee2d656daf54cefc19db49bd18a..33b4c129403cbe14e1957302f970d8fc7e6274a5 100644 (file)
@@ -215,6 +215,9 @@ user:goal_expansion(phrase(GRBody, S, S0), GRBody2) :-
           E,
           dcgs:error_goal(E, GRBody1)
          ),
-    module_call_qualified(M, GRBody1, GRBody2).
+    (  GRBody = (_:_) ->
+       GRBody2 = M:GRBody1
+    ;  GRBody2 = GRBody1
+    ).
 
 user:goal_expansion(phrase(GRBody, S), phrase(GRBody, S, [])).