fix error messages (patch by Ulrich Neumerkel).
This commit is contained in:
parent
ab14365a30
commit
1089aaf585
@ -26,10 +26,9 @@
|
|||||||
|
|
||||||
length(L, M) :-
|
length(L, M) :-
|
||||||
'$skip_list'(L, M, M0, R),
|
'$skip_list'(L, M, M0, R),
|
||||||
( R == [] -> true ;
|
( var(R) -> '$$_length'(R, M, M0) ;
|
||||||
var(R) -> '$$_length'(R, M, M0) ;
|
R == []
|
||||||
L \= [_|_], '$do_error'(type_error(list,L),length(L,M))
|
).
|
||||||
).
|
|
||||||
|
|
||||||
%
|
%
|
||||||
% in case A1 is unbound or a difference list, things get tricky
|
% in case A1 is unbound or a difference list, things get tricky
|
||||||
|
Reference in New Issue
Block a user