Section "flags"

The Dogelog player allows querying and updating various parameters of its own environment or the host language environment. The predicates set_prolog_flag/2 and current_prolog_ flag/2 allows writing and reading a couple of Prolog flags. The emulated flags argv, sys_locale and sys_color are initialized during startup and can be changed.

The following flags predicates are provided:

set_prolog_flag(K, V): [ISO 8.17.2]
The built-in succeeds. As a side effect the value of the flag K is changed to V.
current_prolog_flag(K, V): [ISO 8.17.2]
The predicate succeeds for the value V of the flag K. The following flags are available:

argv: The script arguments.
sys_locale: The current locale.
sys_color: The color scheme.
base_url: The current working directory.
stage: The current stage.
partition: The current partition.
single_quotes: The interpretation of single quoted tokens, read only.
double_quotes: The interpretation of double quoted tokens, read only.
back_quotes: The interpretation of back quoted tokens, read only.
dialect: The Prolog language dialect, read only.
version: The release integer, read only.
use_strict: The use strict mode, read only.
max_code: The maximum character code, read only.
max_arity: The maximum arity of a compound, read only.
async_mode: The current async mode, read only.
allow_yield: The current yield permission, read only.
system_url: The system library path, read only.
foreign_ext: The native libraries file name extension, read only.
host_info: The host programming language string, read only.
mach_info: The machine architecture and operating system string, read only.

Use Privacy (c) 2005-2026 XLOG Technologies AG