scryer-prolog icon indicating copy to clipboard operation
scryer-prolog copied to clipboard

copy_term/2 display (?) incorrect

Open infradig opened this issue 1 year ago • 1 comments

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

infradig avatar Feb 27 '24 06:02 infradig

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.

UWN avatar Feb 28 '24 12:02 UWN