]> Repositorios git - scryer-prolog.git/commitdiff
ENHANCED: Enable goal expansion for CLP(ℤ).
authorMarkus Triska <[email protected]>
Fri, 5 Feb 2021 20:06:08 +0000 (21:06 +0100)
committerMarkus Triska <[email protected]>
Fri, 5 Feb 2021 20:06:08 +0000 (21:06 +0100)
This is now possible since #445 is resolved.

src/lib/clpz.pl

index b7fa0ea7f34a3ac750318028b98e18ffd24946fd..ead8054603c6e06ebd49ca902f50296912c2baeb 100644 (file)
@@ -3068,12 +3068,10 @@ is_false(var(X)) :- nonvar(X).
 
 :- dynamic(goal_expansion/1).
 
-% goal expansion is disabled for now, until #445 is resolved
-%
-% user:goal_expansion(Goal0, Goal) :-
-%         \+ goal_expansion(false),
-%         clpz_expandable(Goal0),
-%         clpz_expansion(Goal0, Goal).
+user:goal_expansion(Goal0, Goal) :-
+        \+ goal_expansion(false),
+        clpz_expandable(Goal0),
+        clpz_expansion(Goal0, Goal).
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%