Get the major and minor version numbers of a component of the Trinc-Prolog program, the first argument called 'version_of_what' indicates of which component the version numbers should be retrieved. The second argument is unified with the major version number and the third argument with the minor version number. The value of the argument 'version_of_what' can be one of the following atomic constants:
| Constant | |
| prolog | get the version of the prolog interpreter |
| interface | get the version of the userinterface of the prolog interpreter |
| windows | get the version of the windows programming interface |
If the constant is not one of the three predefined constants then the predicate throws a domain_error/2 exception.
see also: prolog_version/2
| Exceptions | |
| both arguments are variables | an instantiation_error exception is thrown |
| first argument is not an atom | a type_error(atom, Arg) exception is thrown, the variable Arg is replaced by the value of the first argument |
| second or third argument is not an integer or a variable | a type_error(integer, Arg) exception is thrown, Arg is replaced by the second argument |
| unknown value of first argument | a domain_error(version_unknown, Arg) exception is thrown, Arg is replaced by the value of the first argument |