[ Development Environment and Global Settings | Reference Manual | Alphabetic Index ]
set_prolog_flag(+Flag, ++Value)
Set the flag Flag to value Value.
- Flag
- Atom.
- Value
- Atomic or compound term.
Description
A synonym for set_flag/2, for ISO-Prolog compatibility.
Refer to the specification of get_flag/2 for details about each flag.
The current value of a flag may be returned by current_prolog_flag/2 or get_flag/2.
Note: The iso_strict-version of this predicate only allows access to
the ISO-Prolog-defined flags: bounded, char_conversion, double_quotes,
integer_rounding_function, max_arity, min_integer, max_integer,
unknown, debug.
Modes and Determinism
- set_prolog_flag(+, ++) is det
Exceptions
- (4) instantiation fault
- Flag and/or Value are not instantiated.
- (5) type error
- Flag is neither an atom nor a variable.
- (5) type error
- Value is not of the expected type.
- (6) out of range
- Flag and/or Value are out of range.
- (30) trying to write a read-only flag
- Flag is a read-only flag.
- (141) unimplemented functionality
- Unimplemented setting.
Examples
?- set_prolog_flag(unknown, fail).
See Also
set_flag / 2, current_prolog_flag / 2