tell listing failure in GNU prolog



I try to save databease in GNU prolog , but it failed.
My steps were the followings:
--------------------------------------------------------------------------
GNU Prolog 1.2.16
By Daniel Diaz
Copyright (C) 1999-2002 Daniel Diaz
| ?- assertz(db_test(test)).

yes
| ?- tell('c:\\test.txt').

yes
| ?- listing.

db_test(test).

yes
| ?- told.

yes
| ?-
-------------------------------------------------------------------------------
And when the file 'c:\\test.txt' was checked ,
it was an empty file .

I did the same thing to SWI prolog as the following :
++++++++++++++++++++++++++++++++++++++++
Welcome to SWI-Prolog (Multi-threaded, Version 5.6.12)
Copyright (c) 1990-2006 University of Amsterdam.
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
Please visit http://www.swi-prolog.org for details.

For help, use ?- help(Topic). or ?- apropos(Word).

1 ?- assertz(db_test(test)).

Yes
2 ?- tell('c:\\test.txt').

Yes
3 ?- listing.

Yes
4 ?- told.

Yes
++++++++++++++++++++++++++++++++++++++++++++++
and the contents of the file 'c:\\test.txt' were
==================================
:- dynamic db_test/1.

db_test(test).
===================================

It is now obvious that GNU prolog gets a bug .

.



Relevant Pages

  • Re: Why Prolog code from Wikipedia doesnt run?
    ... GNU Prolog 1.3.0 ... Copyright 1999-2007 Daniel Diaz ... You are better off NOT using GNU-Prolog generally (I can dwell on this ...
    (comp.lang.prolog)
  • Strange clause/2 predicate behaviour in SWI-Prolog
    ... The following behaviour of clause/2 in SWI-Prolog is very strange, ... In GNU Prolog the same query gives: ... Copyright 1999-2002 Daniel Diaz ... Shouldn't the same query give the same answer in both systems? ...
    (comp.lang.prolog)
  • Re: GNU prolog is not so reliable as SWI-prolog
    ... knowledge and when you find boring or tiring, ... Copyright 1999-2004 Daniel Diaz ... to increase that feature in GNU prolog is not a big deal. ...
    (comp.lang.prolog)
  • Re: Why Prolog code from Wikipedia doesnt run?
    ... Copyright 1999-2007 Daniel Diaz ... The problem with running the Wikipedia code in GNU Prolog is that, ... required by the Prolog ISO standard). ...
    (comp.lang.prolog)
  • Re: [REPORT] : GNU prolog bug
    ... Copyright 1999-2002 Daniel Diaz ... compiling user for byte code... ... This prolog can't tell if marry likes marry. ... The error is a syntax error and GNU Prolog is right: ...
    (comp.lang.prolog)