predicate_property should not return properties for undefined predicates.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@339 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
be135b514f
commit
d7109e6974
@ -551,7 +551,8 @@ predicate_property(Pred,Prop) :-
|
||||
'$predicate_property'(P,M,_,dynamic) :-
|
||||
'$is_dynamic'(P,M).
|
||||
'$predicate_property'(P,M,_,static) :-
|
||||
\+ '$is_dynamic'(P,M).
|
||||
\+ '$is_dynamic'(P,M),
|
||||
\+ '$undefined'(P,M).
|
||||
'$predicate_property'(P,M,_,meta_predicate(P)) :-
|
||||
functor(P,Na,Ar),
|
||||
user:'$meta_predicate'(M,Na,Ar,P).
|
||||
|
Reference in New Issue
Block a user