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

copy_term/2 display (?) incorrect #2343

Open
infradig opened this issue Feb 27, 2024 · 1 comment
Open

copy_term/2 display (?) incorrect #2343

infradig opened this issue Feb 27, 2024 · 1 comment

Comments

@infradig
Copy link

?- V=[V], copy_term(f(V),W).
V = [V], W = f([[]]).
?-

@UWN
Copy link

UWN commented Feb 28, 2024

Probably similar to #2333 , thus only writing is incorrect. All below are fine.

?- V=[V], copy_term(f(V),W), W = f([[]]).
   false.
?- V=[V], copy_term(f(V),W), W == f(V).
   V = [V], W = f([[]]).
?- V=[V], copy_term(f(V),W), W = f(V).
   V = [V], W = f([[]]).
?- V=[V], copy_term(f(V),W), acyclic_term(W).
   false.

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

2 participants