fix setof to use catch instead of trying to do its own thing;
fix unnecessary white lines when outputting solutions. git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@788 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -53,9 +53,12 @@ findall(Template, Generator, Answers, SoFar) :-
|
||||
'$findall'(_, _, Ref, SoFar, Answers) :-
|
||||
'$collect_for_findall'(Ref, SoFar, Answers).
|
||||
|
||||
'$clean_findall'(Ref,_) :-
|
||||
'$db_dequeue'(Ref,_),
|
||||
fail.
|
||||
% error handling: be careful to recover all the space we used up
|
||||
% in implementing findall.
|
||||
%
|
||||
'$clean_findall'(Ref,Ball) :-
|
||||
'$db_dequeue'(Ref,_), !,
|
||||
'$clean_findall'(Ref,Ball).
|
||||
'$clean_findall'(_,Ball) :-
|
||||
% get this off the unwound computation.
|
||||
copy_term(Ball,NewBall),
|
||||
|
Reference in New Issue
Block a user