-
Notifications
You must be signed in to change notification settings - Fork 14
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
numbervars/3 silently refuses to number vars #67
Comments
This is (only, AFAICT) documented in para "8.4.7 acyclic_term/1" of the manual. In particular, that states:
|
I have given you a definite answer for this one, so it is rightly completed. But you are also closing all the ones where you didn't get feedback, especially since you are marking them "completed", while those are issues that should be considered and maybe addressed. This is an open project, indeed the official GNU Prolog project, so anybody can pick it up, code and issues and all, |
The error is silent refusal to do something in the sense of:
The error is better seen when you do it as follows, if you add this clause:
And then perform this query:
I think this is a bug somehow. It doesn't need the concept The numbervars/3 should instantiate it to '$VAR'(0). Or otherwise |
You still have a unification involving a cyclic term, and that "does not support the unification of cyclic terms" more explicitly reads the proverbial "it is not supported and results are undefined", as in anything can happen if you use it. Which to me quite closes it and anything that depends on it: past that point it is a feature request, about unification of cyclic terms. |
You are talking nonsense, this here from my test case
The left hand side yourself. Its just
You even emphasized the passage. Next time if you emphasize
The first two two unifications, the cycle creation, but goes astray in third |
Now try
|
Some testing:
Bug or feature?
The text was updated successfully, but these errors were encountered: