make sure that undef within undef is really disallowed.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1230 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
9d8f0e470d
commit
c9307a5987
@ -753,12 +753,12 @@ not(G) :- \+ '$execute'(G).
|
||||
'$do_undefp'(G,M) :-
|
||||
\+ '$undefined'(unknown_predicate_handler(_,_,_), user),
|
||||
'$system_catch'(unknown_predicate_handler(G,M,NG), user, _, fail), !,
|
||||
'$exit_undefp',
|
||||
'$execute'(user:NG).
|
||||
'$execute'(user:NG),
|
||||
'$exit_undefp'.
|
||||
'$do_undefp'(G,M) :-
|
||||
recorded('$unknown','$unknown'(M:G,US),_), !,
|
||||
'$exit_undefp',
|
||||
'$execute'(user:US).
|
||||
'$execute'(user:US),
|
||||
'$exit_undefp'.
|
||||
'$do_undefp'(_,_) :-
|
||||
'$exit_undefp',
|
||||
fail.
|
||||
|
Reference in New Issue
Block a user