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

op/3 current_op/3 failure #2384

Open
flexoron opened this issue Apr 14, 2024 · 1 comment
Open

op/3 current_op/3 failure #2384

flexoron opened this issue Apr 14, 2024 · 1 comment

Comments

@flexoron
Copy link

?- op(1,xfx,'is-').
   true.
?- current_op(1,X,Y).
   false. % unexpected
?-
@triska
Copy link
Contributor

triska commented Apr 14, 2024

$ scryer-prolog 
?- use_module(library(lists)).
   true.
?- length(_, Pri), current_op(Pri, Fix, Op).
   error(domain_error(operator_priority,1201),op/3).

So, no operator of any given priority exists?

Note that it is not unexpected that a domain error arises eventually. But it is unexpected that no solutions are found.

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