🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.prolog
1 messages
1 total messages Started by Roger Scowen Wed, 16 Dec 1992 11:45
Re: Occurs check
#2204
Author: Roger Scowen
Date: Wed, 16 Dec 1992 11:45
38 lines
1799 bytes
Jussi.Rintanen@hut.fi
(Message-ID: <1992Dec13.173016.8849@nntp.hut.fi>) asks:

> Question 1: What implementations of Prolog implement the occurs check?
> (Our university has both Sicstus and NU-Prolog.)
 
The current draft International Standard for Prolog provides built-in
predicates 

1)  unify_with_occurs_check/2

   For any arguments unify_with_occurs_check(X, Y) always 
   succeeds or fails, and never generates an error or 
   gives an undefined result.  

2)   =/2 (unifies) 

   When unification involves infinite trees either as arguments 
   or as a partial result of some top-down unification algorithm,
   the behaviour is undefined.  A standard-conforming processor 
   might consistently succeed or fail for a unification that is 
   formally undefined.  This predicate can be implemented 
   much more efficiently than unify_with_occurs_check/2.

For more information, see 
    R S Scowen, "An overview of Prolog standardization 
    --- progress, problems and solutions", pp922-936 
    of "Logic programming --- proceedings of the eighth 
    international conference" (K Furukawa: Editor,  MIT Press, 
    Cambridge, Massachusetts, 1991. ISBN 0-262-56058-5.)

Roger Scowen (ISO/IEC JTC1 SC22 WG17 Prolog convener),
DITC/93, National Physical Laboratory,
Teddington, Middlesex, Great Britain   TW11 0LW
Telephone: +44 81 943 6956
E-Mail: rss@seg.npl.co.uk         Fax: +44 81 977 7091
18 December 1992
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads