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 is incompatible with SICStus #2671

Open
infradig opened this issue Dec 1, 2024 · 0 comments
Open

copy_term/2 is incompatible with SICStus #2671

infradig opened this issue Dec 1, 2024 · 0 comments

Comments

@infradig
Copy link

infradig commented Dec 1, 2024

With SICStus it is defined as equivalent to:

    copy_term(X, Y) :-
             assert('copy of'(X)),
             retract('copy of'(Y)).

and thus doesn't copy attributes, whereas Scryer copies the attributes a la SWI (one of the few occasions where it favours the latter).

SICStus copy_term/2 is thus similar to copy_term/3.

Note SWI has...

duplicate_term/2        % copy attrs
copy_term_nat/2         % doesn't copy attrs 
copy_term/2                % copy attrs
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

1 participant