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

Term expansion is unexpectedly not confined to its module #2608

Open
triska opened this issue Oct 5, 2024 · 0 comments
Open

Term expansion is unexpectedly not confined to its module #2608

triska opened this issue Oct 5, 2024 · 0 comments

Comments

@triska
Copy link
Contributor

triska commented Oct 5, 2024

For instance, with m.pl comprising:

:- module(m, []).

term_expansion(a, b) :- write(hello).

and p.pl comprising:

:- use_module(m).

a.

I get:

$ scryer-prolog p.pl
hello

The term expansion defined in m.pl is expected to be confined to that module, and should not affect the fact a. which is defined in p.pl.

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