if/3
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@15 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -17,6 +17,15 @@
|
||||
|
||||
once(G) :- '$execute'(G), !.
|
||||
|
||||
if(X,Y,Z) :-
|
||||
CP is '$last_choice_pt',
|
||||
'$execute'(X),
|
||||
'$clean_ifcp'(CP),
|
||||
'$execute'(Y).
|
||||
if(X,Y,Z) :-
|
||||
'$execute'(Z).
|
||||
|
||||
|
||||
call_with_args(V) :- var(V), !,
|
||||
throw(error(instantiation_error,call_with_args(V))).
|
||||
call_with_args(M:A) :- !,
|
||||
|
Reference in New Issue
Block a user