more fixes
This commit is contained in:
parent
4e39da0531
commit
ea47bd124c
@ -444,19 +444,19 @@ plus(X, Y, Z) :-
|
|||||||
'$plus_error'(X,Y,Z)
|
'$plus_error'(X,Y,Z)
|
||||||
).
|
).
|
||||||
|
|
||||||
'$plus_error'(X,Y,Z) :
|
'$plus_error'(X,Y,Z) :-
|
||||||
nonvar(X),
|
nonvar(X),
|
||||||
\+ integer(X),
|
\+ integer(X),
|
||||||
'$do_error'(type_error(integer, X),plus(X,Y,Z)).
|
'$do_error'(type_error(integer, X),plus(X,Y,Z)).
|
||||||
'$plus_error'(X,Y,Z) :
|
'$plus_error'(X,Y,Z) :-
|
||||||
nonvar(Y),
|
nonvar(Y),
|
||||||
\+ integer(Y),
|
\+ integer(Y),
|
||||||
'$do_error'(type_error(integer, Y),plus(X,Y,Z)).
|
'$do_error'(type_error(integer, Y),plus(X,Y,Z)).
|
||||||
'$plus_error'(X,Y,Z) :
|
'$plus_error'(X,Y,Z) :-
|
||||||
nonvar(Z),
|
nonvar(Z),
|
||||||
\+ integer(Z),
|
\+ integer(Z),
|
||||||
'$do_error'(type_error(integer, Z),plus(X,Y,Z)).
|
'$do_error'(type_error(integer, Z),plus(X,Y,Z)).
|
||||||
'$plus_error'(X,Y,Z) :
|
'$plus_error'(X,Y,Z) :-
|
||||||
'$do_error'(instantiation_error,plus(X,Y,Z)).
|
'$do_error'(instantiation_error,plus(X,Y,Z)).
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user