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

library(lambda): Unexpected existence error with (+\)/2 #2684

Closed
triska opened this issue Dec 6, 2024 · 4 comments
Closed

library(lambda): Unexpected existence error with (+\)/2 #2684

triska opened this issue Dec 6, 2024 · 4 comments

Comments

@triska
Copy link
Contributor

triska commented Dec 6, 2024

With the following program:

:- use_module(library(lambda)).

t.

I get:

?- t.
   true. % expected
?- n+\t.
   error(existence_error(procedure,t/0),t/0), unexpected.

It works as expected if I explicitly qualify the goal:

?- n+\user:t.
   true.

A related issue is #2619, I am not sure it is the same as this one, since this one involves (+\)/2 whereas the other does not.

@hurufu
Copy link
Contributor

hurufu commented Dec 6, 2024

I think it is some sort of regression, because it works Ok, on my system-wide Scryer installation:

$ scryer-prolog -v
379cbfd

version: 0.9.4-1

@triska
Copy link
Contributor Author

triska commented Dec 7, 2024

Thank you a lot, this works perfectly now!

@triska triska closed this as completed Dec 7, 2024
@infradig
Copy link

infradig commented Dec 7, 2024

It works as expected if I explicitly qualify the goal:

?- n+\user:t. true.

How is this not a type error on the module qualifier? There should need to be parenthesis around user:t should there not?

@triska
Copy link
Contributor Author

triska commented Dec 7, 2024

Yes, completely correct, I have filed #2685 for this, thank you a lot!

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

3 participants