-
Notifications
You must be signed in to change notification settings - Fork 123
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
Unexpected evaluation_error for CLP(ℤ) goal expansion #228
Comments
I now get: ?- clpz:goal_expansion(cis(A,B), Y). Y = true . However, I expect the binding (Please also see #237 for the unexpected blank symbol that occurs before the |
Yes, I figured. I'm not sure how to implement that in pure Prolog without scouring the variable list, and checking that the attached labels aren't equal. Otherwise, the toplevel will post many |
Ideally, the toplevel should use the http://www.complang.tuwien.ac.at/ulrich/iso-prolog/WDCor3#7.10.3 These variable names should then be used when the residual goals are displayed. A binding like |
Maybe an internal Prolog predicate that determines whether its argument is a free variable could help with this? It should succeed for WAM cells that point to themselves (if indeed variables are represented in this way in Scryer!). For such variables, it is not necessary to emit a binding. |
The binding works nicely now, so I'm closing this issue, thank you a lot! Please see #253 for the crash that can now be observed with this query! |
With
clpz3.pl
from https://www.metalevel.at/clpz/scryer/clpz3.pl, I get:Expected: Success, with
The text was updated successfully, but these errors were encountered: