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
Feature request flag dialect, maybe version and version_data #1017
Comments
If I remember correctly this was already suggested in #511 and #84. I don't think there is a technical blocker but there are some arguments that is better to not let the programs know which Prolog implementation are they running to encourage standards conformance. IMO +1 to add them, it could be useful for reporting |
The notion of "dialect" is alien to the Prolog standard, although it recognizes different levels of conformance to the standard. You can get the Scryer Prolog version with the internal predicet v(V) :- '$scryer_prolog_version'(V). yielding: ?- v(V). V = "v0.8.123-596-g72a77 ...". A better way is to use the $ scryer-prolog -v "v0.8.123-596-g72a7765-modified" It is bad practice to make code dependent on any specific system: Better test for features such as the existence of predicates, since new Prolog systems that provide these features will then automatically also be supported. You can also add compatibility features you need in your |
It seems that scryer prolog has very few Prolog flags:
I am not drumming the ISO core standard drums. I rather observed
that many Prolog systems support the Prolog flag "dialect". Then some
Prolog system also support the Prolog flags "version" and "version_data".
Here is an example from SWI-Prolog:
Would it be possible to add these to Scryer Prolog?
The text was updated successfully, but these errors were encountered: