Subject: i/o: why are there spaces between list elements

From: "Noord G.J.M. van" <[email-masked]>
Date: Thu, 14 Sep 2000 12:07:10 +0200 (METDST)

Noord G.J.M. van writes:

Why does write/1 writes spaces between list elements? Other Prologs
don't.  This makes it hard to compare the results of different Prologs
on the same task.  Is there a simple way to change it?

swi prolog:
-----------

| ?- write([a,b]),nl.
[a, b]

sicstus prolog:
---------------

| ?- write([a,b]),nl.
[a,b]

yap:
----

   ?- write([a,b]),nl.
[a,b]

b-prolog:
---------

| ?- write([a,b]).
[a,b]

bin-prolog:
-----------

?- write([a,b]),nl.
[a,b]

-- 
Gertjan van Noord Alfa-informatica, RUG,  Postbus 716, 9700 AS Groningen
vannoord at let dot rug dot nl            http://www.let.rug.nl/~vannoord