prolog module is visible everywhere.

This commit is contained in:
Vitor Santos Costa 2009-05-28 21:51:34 -05:00
parent 5760986b2f
commit 3fc4f71bee
1 changed files with 2 additions and 1 deletions

View File

@ -788,7 +788,8 @@ predicate_property(Pred,Prop) :-
'$predicate_property2'(Pred,Prop,M) :- var(M), !,
'$all_current_modules'(M),
'$predicate_property2'(Pred,Prop,M).
'$predicate_property2'(Pred,Prop,M) :- var(Pred), !,
'$predicate_property2'(Pred,Prop,M0) :- var(Pred), !,
(M = M0 ; M = prolog), % prolog mode is automatically incorporate in every other module
'$generate_all_preds_from_mod'(Pred, SourceMod, M),
'$predicate_property'(Pred,SourceMod,M,Prop).
'$predicate_property2'(M:Pred,Prop,_) :- !,