Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLP(ℤ): Unexpected difference between programs and queries #2236

Closed
triska opened this issue Dec 18, 2023 · 1 comment
Closed

CLP(ℤ): Unexpected difference between programs and queries #2236

triska opened this issue Dec 18, 2023 · 1 comment

Comments

@triska
Copy link
Contributor

triska commented Dec 18, 2023

Example program:

:- use_module(library(clpz)).

clpz:monotonic.

p(X) :- X #= 0.

We know get:

?- p(X).
   X = 0, unexpected.
?- X #= 0.
   error(instantiation_error,instantiation_error(unknown(_37),1)). % expected

Why is X #=0 posted as a query different from X #= 0 appearing as a goal in a predicate definition?

@triska
Copy link
Contributor Author

triska commented Mar 2, 2024

Thank you a lot!

@triska triska closed this as completed Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant