keep current_stream across top-level.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2249 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
0c006711ba
commit
abbf5430dc
@ -27,7 +27,6 @@ true :- true.
|
||||
|
||||
'$do_live' :-
|
||||
repeat,
|
||||
'$set_input'(user_input),'$set_output'(user),
|
||||
'$current_module'(Module),
|
||||
( Module==user ->
|
||||
'$compile_mode'(_,0)
|
||||
@ -96,7 +95,8 @@ true :- true.
|
||||
),
|
||||
'$db_clean_queues'(0),
|
||||
'$startup_reconsult',
|
||||
'$startup_goals'.
|
||||
'$startup_goals',
|
||||
'$set_input'(user_input),'$set_output'(user).
|
||||
|
||||
'$init_consult' :-
|
||||
nb_setval('$lf_verbose',informational),
|
||||
|
@ -383,7 +383,7 @@ tell(F) :- var(F), !,
|
||||
'$do_error'(instantiation_error,tell(F)).
|
||||
tell(F) :- current_output(Stream),
|
||||
'$user_file_name'(Stream,F), !.
|
||||
tell(F) :- current_stream(_,write,Stream), '$user_file_name'(Stream, F), !,
|
||||
tell(F) :- current_stream(_,write,Stream), '$user_file_name'(Stream, F), !,
|
||||
set_output(Stream).
|
||||
tell(Stream) :- '$stream'(Stream), current_stream(_,write,Stream), !,
|
||||
set_output(Stream).
|
||||
|
Reference in New Issue
Block a user