Constraint propagation

Julien Prados <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Organization CUI
Message-ID <[email protected]>
Hello, I have a question about constraint propagation in gprolog 1.2.16 
(under linux). Let's consider the following query:

A #<=> (X #\/ Y),
B #<=> (X #\/ Y),
A #<=> 1.

for this query the answer of gprolog is:

A = 1
B = _#81(0..1)
X = _#19(0..1)
Y = _#38(0..1)

but I would expect that A and B reference the same variable, and then we 
should obtain the following result:

A = 1
B = 1
X = _#19(0..1)
Y = _#38(0..1)


why it is not like this ?

Thanks,

Julien Prados


-----
Julien Prados      Tel:+41 22 37 91083
CUI - University of Geneva
24 rue General Dufour
1211 GENEVE 4/Switzerland
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.