🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.prolog
Article #611

Re: Standard behavior?

#611
From: Nabiel Elshiewy
Date: Wed, 14 May 1986 16:19
15 lines
1074 bytes
In article <6500005@uicsl> Mark Gooley (gooley@uicsl.UUCP) writes:
>
>Consider the following trivial predicate:
>
>a([]).
>a(_).
>
>Given the query :-a([]). , C-Prolog finds one match and UNSW Prolog finds two.
>Which is standard behavior?  How do other implementations behave?
>

Intuitively C-Prolog's  one  match is the  expected standard behaviour. The
two assertions describe a choice; it is either an empty  list or  something
else which differs from an empty list.
Aside: Also both Quintus Prolog and Mu-Prolog find one match.
Technical Details
Message-ID: <1135@erix.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!mcvax!enea!erix!nabiel
References: <6500005@uicsl>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!mcvax!enea!erix!nabiel
From: nabiel@erix.UUCP (Nabiel Elshiewy)
Newsgroups: net.lang.prolog
Subject: Re: Standard behavior?
Message-ID: <1135@erix.UUCP>
Date: Wed, 14-May-86 12:19:42 EDT
Article-I.D.: erix.1135
Posted: Wed May 14 12:19:42 1986
Date-Received: Sun, 18-May-86 14:55:28 EDT
References: <6500005@uicsl>
Reply-To: nabiel@erix.UUCP (Nabiel Elshiewy)
Organization: L M Ericsson, Stockholm, Sweden
Lines: 15