Re: listing(+Pred, -Atom)
- From: Simon.Strobl@xxxxxxxxx
- Date: Wed, 11 Jul 2007 04:29:00 -0700
with_output_to/2 is quite recent. If you're version doesn't have it you
might wish to update.
Thanks a lot. I will update. Thanks for providing swi, by the way.
If not, how could such a predicate be written? What other predicates
are there, besides "listing", for accessing the definition of a
predicate?
A better question, why would you want this?
I wrote a cgi script which is given data by the users. The data is
sent to a server program which stores them as prolog facts. I thought
it would be more elegant to assert each fact and to write the listings
of the facts to a data file in a structured manner than to append the
facts at the and of the data file and to reconsult the data file.
Simon
.
- References:
- listing(+Pred, -Atom)
- From: Simon . Strobl
- Re: listing(+Pred, -Atom)
- From: Jan Wielemaker
- listing(+Pred, -Atom)
- Prev by Date: Re: listing(+Pred, -Atom)
- Next by Date: Re: Floyd warshall
- Previous by thread: Re: listing(+Pred, -Atom)
- Next by thread: Re: listing(+Pred, -Atom)
- Index(es):
Relevant Pages
|
|