From jan@swi.psy.uva.nl  Thu Mar  2 15:46:14 2000
Received: from gollem.swi.psy.uva.nl (root@gollem [145.18.152.30])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id PAA10003;
	Thu, 2 Mar 2000 15:46:14 +0100 (MET)
Received: (from jan@localhost)
	by gollem.swi.psy.uva.nl (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id PAA14130;
	Thu, 2 Mar 2000 15:46:30 +0100
Date: Thu, 2 Mar 2000 15:46:30 +0100
Message-Id: <200003021446.PAA14130@gollem.swi.psy.uva.nl>
From: Jan Wielemaker <jan@swi.psy.uva.nl>
Subject: Re: list size limitation ?
To: "Sebastien.Konieczny" <Sebastien.Konieczny@lifl.fr>, prolog@swi.psy.uva.nl
In-Reply-To: Sebastien.Konieczny's message of Thu, 2 Mar 2000 15:20:51 +0100 (MET)
Phone: +31 - 20 - 525 6121

> 
> I have a question about the size of the lists in SWI-prolog.
> I use prolog for AI courses and the students use the 3.3.0 version.
> In an exercice the answer of the query is: 
> 
> L = [etat([], [oie, renard, grain], d), etat([oie], [renard, grain], g), etat([oie], [renard, grain> ], d), etat([renard, oie], [grain], g), etat([oie], [grain, renard], d), etat([oie, grain], [renard> ], g), etat([grain], [renard, oie], d), etat([renard, grain], [oie], g), etat([renard|...], [oie], > d), etat(..., ..., ...)] 
> 
> What are the "..." ?
> When I try the same query on my computer (I use the 3.2.0 version), I get
> 
> L = [etat([], [oie, renard, grain], d), etat([oie], [renard, grain], g), etat([oie], [renard, grain> ], d), etat([renard, oie], [grain], g), etat([oie], [grain, renard], d), etat([oie, grain], [renard> ], g), etat([grain], [renard, oie], d), etat([renard, grain], [oie], g), etat([renard, grain], [oie> ], d), etat([renard, oie, grain], [], g)] 
> 
> 
> So it seems that the size of an answered list is bounded in the new version and
> I would like to know if it is to possible to increase or remove this limit.

See the prolog flag toplevel_print_options:

?- current_prolog_flag(toplevel_print_options, X).

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

See write_term/3 for the meaning of these options.

Note that you can change this globally for your site by creating an
appropriate pl.rc (Unix) or plwin.rc (Windows) file in the SWI-Prolog
`home' directory, which is compiled before anything else happens.

	Regards --- Jan

