write_depth/3
overflow handlings and garbage collection Several ipdates to CLPBN dif/2 could be broken in the presence of attributed variables. git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1474 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
36
docs/yap.tex
36
docs/yap.tex
@@ -4339,17 +4339,41 @@ opened or closed.
|
||||
Switches on the file_errors flag so that in certain error conditions
|
||||
I/O predicates will produce an appropriated message and abort.
|
||||
|
||||
@item write_depth(@var{T},@var{L},@var{A})
|
||||
@findex write_depth/3
|
||||
@snindex write_depth/3
|
||||
@cnindex write_depth/3
|
||||
Unifies @var{T} with the value of the maximum depth of a term to be
|
||||
written, @var{L} with the maximum length of a list to write, and @var{A}
|
||||
with the maximum number of arguments of a compound term to write. The
|
||||
setting will be used by @code{write/1} or @code{write/2}. The default
|
||||
value for all arguments is 0, meaning unlimited depth and length.
|
||||
|
||||
@example
|
||||
?- write_depth(3,5,5).
|
||||
yes
|
||||
?- write(a(b(c(d(e(f(g))))))).
|
||||
a(b(c(....)))
|
||||
yes
|
||||
?- write([1,2,3,4,5,6,7,8]).
|
||||
[1,2,3,4,5,...]
|
||||
yes
|
||||
?- write(a(1,2,3,4,5,6,7,8)).
|
||||
a(1,2,3,4,5,...)
|
||||
yes
|
||||
@end example
|
||||
|
||||
@item write_depth(@var{T},@var{L})
|
||||
@findex write_depth/2
|
||||
@snindex write_depth/2
|
||||
@cnindex write_depth/2
|
||||
Unifies @var{T} and L, respectively, with the values of the maximum depth
|
||||
of a term and the maximum length of a list, that will be used by
|
||||
@code{write/1} or @code{write/2}. The default value for both arguments is 0,
|
||||
meaning unlimited depth and length.
|
||||
Same as @code(write_depth(@var{T},@var{L},_)}. Unifies @var{T} with the
|
||||
value of the maximum depth of a term to be
|
||||
written, and @var{L} with the maximum length of a list to write. The
|
||||
setting will be used by @code{write/1} or @code{write/2}. The default
|
||||
value for all arguments is 0, meaning unlimited depth and length.
|
||||
|
||||
@example
|
||||
?- write_depth(3,5).
|
||||
?- write_depth(3,5,5).
|
||||
yes
|
||||
?- write(a(b(c(d(e(f(g))))))).
|
||||
a(b(c(....)))
|
||||
|
Reference in New Issue
Block a user