🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #1396

Quintus Prolog Problem

#1396
From: Bradley L. Richards
Date: Tue, 13 Nov 1990 22:35
15 lines
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!bradley

Show 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