🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #2916

Re: Question on get0/read and call

#2916
From: Francois-Michel Lang
Date: Thu, 31 Dec 1987 12:56
20 lines
1269 bytes
In article <720@cos.COM> duc@COS.COM (Duc Kim Nguyen) writes:
>
>I have a question concerning get0/read and call (I am using Quintus Prolog):
>
>(1) A predicate f is defined with
>	:- op(700,fx,f).
...

I'm not sure I fully understand the question/problem,
but I think I can clear up one apparent misconception:
The operator declaration 

:- op(700,fx,f).

does NOT define a predicate.  It only allows you to use the
atom 'f' as a prefix operator.  That sounds like it's part of the problem.
----------------------------------------------------------------------------
Francois-Michel Lang			    
Paoli Research Center, Unisys Corporation lang@prc.unisys.com (215) 648-7469
Dept of Comp & Info Science, U of PA      lang@cis.upenn.edu  (215) 898-9511
Technical Details
Message-ID: <2931@super.upenn.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!rutgers!super.upenn.edu!linc.cis.upenn.edu!lang
References: <720@cos.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!rutgers!super.upenn.edu!linc.cis.upenn.edu!lang
From: lang@linc.cis.upenn.edu (Francois-Michel Lang)
Newsgroups: comp.lang.prolog
Subject: Re: Question on get0/read and call
Message-ID: <2931@super.upenn.edu>
Date: 31 Dec 87 12:56:51 GMT
References: <720@cos.COM>
Sender: news@super.upenn.edu
Reply-To: lang@linc.cis.upenn.edu.UUCP (Francois-Michel Lang)
Organization: University of Pennsylvania
Lines: 19
Keywords: prolog term, list, atom