Re: Prolog goals order
- From: "Greg Buchholz" <sleepingsquirrel@xxxxxxxxx>
- Date: 24 Aug 2006 14:58:49 -0700
Mauro DiNuzzo wrote:
As an example, the goal:
?- X+1>10, read(X).
raises an instantiation error. (we have the mind full of examples like
this!)
My question is: "why Prolog does not change itself to overcome this
problem?".
FWIW, I think the Mercury langauge does exactly that. From
http://doc.rz.ifi.lmu.de/programming/mercury/transition_guide.html
"the Mercury compiler automatically reorders conjunctions so that all
consumers of a variable come after the producer"
Greg Buchholz
.
- Follow-Ups:
- Re: Prolog goals order
- From: bart demoen
- Re: Prolog goals order
- References:
- Prolog goals order
- From: Mauro DiNuzzo
- Prolog goals order
- Prev by Date: Re: Prolog goals order
- Next by Date: Re: Prolog Programming for AI, problem 7.1
- Previous by thread: Re: Prolog goals order
- Next by thread: Re: Prolog goals order
- Index(es):
Relevant Pages
|