mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 05:13:48 +00:00
Add io.write_line_cc/4.
library/io.m:
Add a version of io.write_line_cc that takes an explicit stream argument.
NEWS:
Announce the addition.
browser/interactive_query.m:
Use the new predicate.
This commit is contained in:
@@ -940,8 +940,7 @@ write_binding(OutputStream, Bindings, Output, !IO) :-
|
||||
|
||||
report_exception(OutputStream, Excp, !IO) :-
|
||||
io.write_string(OutputStream, "*** caught exception: ", !IO),
|
||||
io.write_cc(OutputStream, Excp, !IO),
|
||||
io.nl(OutputStream, !IO).
|
||||
io.write_line_cc(OutputStream, Excp, !IO).
|
||||
|
||||
%---------------------------------------------------------------------------%
|
||||
%
|
||||
|
||||
Reference in New Issue
Block a user