jupyter
This commit is contained in:
@@ -226,7 +226,7 @@ absolute_file_name(File0,File) :-
|
||||
'$find_in_path'(user_output,_,user_ouput, _, _) :- !.
|
||||
'$find_in_path'(user_error,_,user_error, _, _) :- !.
|
||||
'$find_in_path'(Name, Opts, File, _, First) :-
|
||||
% ( atom(Name) -> true ; start_low_level_trace ),
|
||||
% ( atom(Name) -> true ; start_low_level_trace ),
|
||||
get_abs_file_parameter( file_type, Opts, Type ),
|
||||
get_abs_file_parameter( access, Opts, Access ),
|
||||
get_abs_file_parameter( expand, Opts, Expand ),
|
||||
|
@@ -250,9 +250,12 @@ initialize_prolog :-
|
||||
:- c_compile( 'preds.yap' ).
|
||||
:- c_compile( 'modules.yap' ).
|
||||
:- c_compile( 'grammar.yap' ).
|
||||
|
||||
:- start_low_level_trace.
|
||||
|
||||
:- ['absf.yap'].
|
||||
|
||||
%:- start_low_level_trace.
|
||||
:- stop_low_level_trace.
|
||||
|
||||
:- use_module('error.yap').
|
||||
|
||||
@@ -305,6 +308,8 @@ initialize_prolog :-
|
||||
|
||||
:- ['protect.yap'].
|
||||
|
||||
:- stop_low_level_trace.
|
||||
|
||||
version(yap,[6,3]).
|
||||
|
||||
:- op(1150,fx,(mode)).
|
||||
@@ -444,7 +449,7 @@ modules defining clauses for it too.
|
||||
|
||||
|
||||
Dynamic predicate, normally not defined. Called by the Prolog system on run-time exceptions that can be repaired `just-in-time`. The values for _Exception_ are described below. See also catch/3 and throw/1.
|
||||
If this hook predicate succeeds it must instantiate the _Action_ argument to the atom `fail` to make the operation fail silently, `retry` to tell Prolog to retry the operation or `error` to make the system generate an exception. The action `retry` only makes sense if this hook modified the environment such that the operation can now succeed without error.
|
||||
If this hook preodicate succeeds it must instantiate the _Action_ argument to the atom `fail` to make the operation fail silently, `retry` to tell Prolog to retry the operation or `error` to make the system generate an exception. The action `retry` only makes sense if this hook modified the environment such that the operation can now succeed without error.
|
||||
|
||||
+ `undefined_predicate`
|
||||
_Context_ is instantiated to a predicate-indicator ( _Module:Name/Arity_). If the predicate fails Prolog will generate an existence_error exception. The hook is intended to implement alternatives to the SWI built-in autoloader, such as autoloading code from a database. Do not use this hook to suppress existence errors on predicates. See also `unknown`.
|
||||
|
Reference in New Issue
Block a user