Article View: comp.lang.prolog
Article #1396Quintus Prolog Problem
From: Bradley L. Richards
Date: Tue, 13 Nov 1990 22:35
Date: Tue, 13 Nov 1990 22:35
15 lines
826 bytes
826 bytes
As near as I can tell, setof and bagof don't work properly with the
"recorded" predicate in Quintus Prolog (version 2.5.1, sun3-4.0).
If I record: recorda(woof, term2, _),
recorda(woof, term1, _).
and then query: setof(X, recorded(woof, X, _), Set).
I receive the answer Set = [term2], and on backtracking the answer
Set - [term1]. It seems to me that I should receive a single answer
Set - [term1, term2].
Am I missing something? Or is this a known bug?
Bradley
Technical Details
Message-ID:
<264@messina.cs.utexas.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!bradleyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!bradley From: bradley@cs.utexas.edu (Bradley L. Richards) Newsgroups: comp.lang.prolog Subject: Quintus Prolog Problem Message-ID: <264@messina.cs.utexas.edu> Date: 13 Nov 90 22:35:16 GMT Organization: Dept of Computer Sciences, UTexas, Austin Lines: 15