Re: Opinion on "biconditional" predicate?
From: Bart Demoen (bmd_at_cs.kuleuven.ac.be)
Date: 10/11/03
- Next message: Alan: "What is Prolog?"
- Previous message: Robert Oschler: "Re: Opinion on "biconditional" predicate?"
- In reply to: Robert Oschler: "Re: Opinion on "biconditional" predicate?"
- Next in thread: Benjamin Johnston: "Re: Opinion on "biconditional" predicate?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 11 Oct 2003 20:19:16 +0200
Robert Oschler wrote:
> Re: metacalls, what's a good "workaround" or where's a good
> example/document/web page to get me thinking in the right direction?
"workaround" what ?
You want to avoid using the metacall ?
Then here is a possibility (but it invites other solutions to
your commutativity problem):
If you want some predicate foo/2 to be "metacallable", then define:
:- multifle my_call/1.
my_call(foo(X,Y)) :- foo(X,Y).
and instead of using (in your definition of bicond/2) the goal Term1, use my_call(Term1)
... and pray that multifile is implemented properly :-)
I dislike multifile a lot (for good reasons of course :-) - but it works in most implementations.
Oh, and predicate module systems pose a challenge again :-(
Cheers
Bart
- Next message: Alan: "What is Prolog?"
- Previous message: Robert Oschler: "Re: Opinion on "biconditional" predicate?"
- In reply to: Robert Oschler: "Re: Opinion on "biconditional" predicate?"
- Next in thread: Benjamin Johnston: "Re: Opinion on "biconditional" predicate?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|