-
Notifications
You must be signed in to change notification settings - Fork 13
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
issue with portray_clause/2 to output a copied term #638
Comments
It seems related with #634 where we also used library(format). |
Scryer doesn't do portray_clause/2 as it's non-standard so maybe best avoided. |
Sorry, take that back. I though you meant format ~p to call a user-defined portray. |
I've never used portray_clause/2 and am not at all familiar with it. |
The issue remains after replacing |
It works fine when using |
Since you are not using attributes (I assume) it is indeed odd. It should work using copy_term_nat/2 instead of copy_term/2 as well. |
I also tried with |
and yes, we are not using attributes, the 3rd arg of |
and earlier versions like https://github.com/eyereasoner/eye3/blob/2dc50874fedc39c3cf2e200484e72b6432ccdaa1/eye3.pl were using |
Sorry, problem not fixed it seems. |
and still working fine when using |
The issue can be reproduced with:
which is giving
but we expect it to give
So somehow the copied Rule in https://github.com/eyereasoner/eye3/blob/21f142195db9b5967d7710514c4d7aa2c9180636/eye3.pl#L65 seems to get corrupted.
The text was updated successfully, but these errors were encountered: