support writeln/1 for SWI compatibility.

This commit is contained in:
Vitor Santos Costa 2008-08-24 16:09:33 +01:00
parent a72355f288
commit 7a94144ccb
2 changed files with 10 additions and 0 deletions

View File

@ -4583,6 +4583,12 @@ exists.
The term @var{T} is written to the current output stream according to
the operator declarations in force.
@item writeln(@var{T}) [ISO]
@findex writeln/1
@snindex writeln/1
@cnindex writeln/1
Same as @code{write/1} followed by {nl/0}.
@item display(+@var{T})
@findex display/1
@syindex display/1

View File

@ -506,6 +506,10 @@ nl.
write(T) :-
'$write'(4, T).
writeln(T) :-
'$write'(4, T),
nl.
write(Stream,T) :-
'$write'(Stream,4,T).