]> Repositorios git - scryer-prolog.git/commitdiff
cut when finished verify_attributes/3 calls
authorMark Thom <[email protected]>
Sun, 10 Feb 2019 18:14:06 +0000 (11:14 -0700)
committerMark Thom <[email protected]>
Sun, 10 Feb 2019 18:14:06 +0000 (11:14 -0700)
src/prolog/machine/attributed_variables.pl

index dfadfb203b34e42829908d8a4531a25361c822fc..c72c9e2497c52e29b041eb28c476584e363ad29f 100644 (file)
@@ -1,6 +1,7 @@
 driver(Vars, Values) :-
     iterate(Vars, Values, ListOfListsOfGoalLists),
-    '$redo_attr_var_bindings', %% the bindings list is emptied here.
+    '$redo_attr_var_bindings', % the bindings list is emptied here.
+    !,
     call_goals(ListOfListsOfGoalLists),
     '$restore_p_from_sfcp'.
 
@@ -13,7 +14,7 @@ iterate([], [], []).
 call_verify_attributes(Attrs, _, _, []) :-
     var(Attrs), !.
 call_verify_attributes([Attr|Attrs], Var, Value, [Goals|ListOfGoalLists]) :-
-    '$module_of'(M, Attr), % write the owning module Attr to M.
+    '$module_of'(M, Attr),     % write the owning module of Attr to M.
     catch(M:verify_attributes(Var, Value, Goals),
           error(evaluation_error((M:verify_attributes)/3), verify_attributes/3),
           Goals = []),