Subject: Re: Display of Lists

From: Jan Wielemaker <[email-masked]>
Date: Fri, 17 Nov 2000 12:53:05 +0100

On Thu, 16 Nov 2000, Darryl N. Davis wrote:
>hi
>    in moving from SWI-Prolog v3.3.4 to v3.4.x
>    The display of variables unified to lists has changed.
>
>    Where as in 3.3.4
>        ?- A = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].
>    would result in:
>            A = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].
>
>    in 3.4.0, the following behaviour is seen
>     ?- A = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].
>        A = [1, 2, 3, 4, 5, 6, 7, 8, 9|...]
>    Yes
>
>    Is there an environmental variable that I can change to get the interpreter
>        to disply the full list displays when variables are unified to lists?

See current_prolog_flag/2, option toplevel_print_options.  Default
setting is:

?- current_prolog_flag(toplevel_print_options, Y).

Y = [quoted(true), portray(true), max_depth(10)]

Note that by typing `w' to the toplevel or debugger, it will switch to
using plain quoted write for emitting bindings.  Typing 'p' reverts to
the default behaviour.

	Regards --- Jan