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

Modules, importing a module with an empty import list #2627

Open
UWN opened this issue Oct 19, 2024 · 0 comments
Open

Modules, importing a module with an empty import list #2627

UWN opened this issue Oct 19, 2024 · 0 comments

Comments

@UWN
Copy link

UWN commented Oct 19, 2024

$ cat t.pl
:- module(t,[t/0]).
t.
$ /opt/gupu/scryer-prolog/target/release/scryer-prolog -f
?- use_module(t,[]).
   true.
?- t:t.
   error(existence_error(procedure,t:t/0),t/0), unexpected.
   true. % expected, but not found

This happens when one wants to compare different versions of the same interface. Otherwise, another intermediary module would be needed. SICStus and SWI all load the file. Scryer does not even parse it (insert a syntax error to see this).

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