fix different semantics for yapor.

This commit is contained in:
Vitor Santos Costa 2010-07-31 00:32:54 +01:00
parent f59f8e3f1a
commit b2c1523de6
2 changed files with 7 additions and 7 deletions

View File

@ -187,9 +187,9 @@ ensure_loaded(Fs) :-
compile(Fs) :-
'$load_files'(Fs, [], compile(Fs)).
consult(Fs) :-
'$has_yap_or',
'$do_error'(context_error(consult(Fs),clause),query).
% consult(Fs) :-
% '$has_yap_or',
% '$do_error'(context_error(consult(Fs),clause),query).
consult(V) :-
var(V), !,
'$do_error'(instantiation_error,consult(V)).

View File

@ -651,10 +651,10 @@ abolish(X) :-
print_message(warning,no_match(abolish(Module:Name/Arity))).
% I cannot allow modifying static procedures in YAPOR
% this code has to be here because of abolish/2
'$abolishs'(G, Module) :-
'$has_yap_or', !,
functor(G,A,N),
'$do_error'(permission_error(modify,static_procedure,A/N),abolish(Module:G)).
% '$abolishs'(G, Module) :-
% '$has_yap_or', !,
% functor(G,A,N),
% '$do_error'(permission_error(modify,static_procedure,A/N),abolish(Module:G)).
'$abolishs'(G, M) :-
'$is_multifile'(G,M), !,
functor(G,Name,Arity),