[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug with streams or listing?

From: Daniel Savard
Subject: Bug with streams or listing?
Date: Sun, 6 Nov 2005 10:46:02 -0500

Seems there is a bug with the streams implementation. I am newbie to
both gnu-prolog and prolog, I am trying to save a knowledge base using
the following fragment of code. This code is working properly with
swi-prolog-lite, but not with gnu-prolog. Only the write statement
produce some output in the file, the listing predicate is generating
output to the screen as if the user_output stream has not been
redirected into the file bozo.pl. A write after listing will output to
the file as expected. What is going wrong with listing? Is there a
work around?


Assume the output file is bozo.pl and the knowledge base is kb and in
file toto.pl.

I tried as well this way with the same result, working fine with

tell('bozo.pl'),write(':- dynamic(kb/2).'),nl,listing(kb),told.

I am running gnu-prolog 1.2.16 with Linux kernel 2.6.13.


Daniel Savard

reply via email to

[Prev in Thread] Current Thread [Next in Thread]