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

Incomplete printing of cyclic term #464

Closed
flexoron opened this issue Jan 10, 2024 · 3 comments
Closed

Incomplete printing of cyclic term #464

flexoron opened this issue Jan 10, 2024 · 3 comments

Comments

@flexoron
Copy link

flexoron commented Jan 10, 2024

v2.33.15

?- [user].
d(A,B,C) :- c(B,D), C=[A|D].
c(c,c).
end_of_file.
   true.

?- d(A,C,A).
   A = [_A|c], C = c.       % unexpected, expecting A = [A|c], C = c.

?- d(A,C,A), write_term(A,[max_depth(3)]).
[_5|c]   A = [_A|c], C = c. % unexpected, expecting something like [[...|c]|c]  A = [A|c], C = c.
@infradig
Copy link
Contributor

infradig commented Jan 12, 2024 via email

@flexoron
Copy link
Author

Part I fixed.
Because there are already issues concerning write_term,max_depth open,
this issue has been closed. (#351 #285 ...)

@infradig
Copy link
Contributor

infradig commented Jan 12, 2024 via email

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