🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #2890

NU-Prolog termCompare/3.

#2890
From: spooner
Date: Thu, 03 Dec 1987 06:18
17 lines
946 bytes
Does anyone have any thoughts on why the goal:

    ?- termCompare(T, [a], [b]).

succeeds with:

    T = =

This causes problems when generating sets of lists with solutions/3,
for example powerset/2.

Also, redefining termCompare/3 does not help.  The anomaly became apparent
when using addElement/3 in the osets library.  

?- Is there a problem with performing recursive term comparison based not
only on cardinality.
Technical Details
Message-ID: <1237@vaxb.calgary.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!uw-beaver!ubc-vision!alberta!calgary!spooner

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!uw-beaver!ubc-vision!alberta!calgary!spooner
From: spooner@calgary.UUCP
Newsgroups: comp.lang.prolog
Subject: NU-Prolog termCompare/3.
Message-ID: <1237@vaxb.calgary.UUCP>
Date: Thu, 3-Dec-87 01:18:39 EST
Article-I.D.: vaxb.1237
Posted: Thu Dec  3 01:18:39 1987
Date-Received: Thu, 10-Dec-87 00:56:26 EST
Organization: U. of Calgary, Calgary, Ab.
Lines: 17
Keywords: alternatives?