We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
?- use_module(library(clpfd)). true. ?- 4 #= 2*Y. ERROR: Syntax error: Operator expected ERROR: 4 ERROR: ** here ** ERROR: #= 2*Y . ?-
SWI-Prolog (threaded, 64 bits, version 9.0.4)
The text was updated successfully, but these errors were encountered:
I just stumbled across the same issue. Apparently use_module is a directive and thus has to be put into a file.
What worked for me:
# FILE: imports.pl :- use_module(library(clpfd)).
I don't know if you can import that
Then run swi-prolog.swipl imports.pl. Afterwards running 4 #= 2*Y. yields the expected Y=2.
swi-prolog.swipl imports.pl
4 #= 2*Y.
Y=2.
Sorry, something went wrong.
No branches or pull requests
SWI-Prolog (threaded, 64 bits, version 9.0.4)
The text was updated successfully, but these errors were encountered: