- eval_default(+Default, +Module, +Type, -Value) is det[private]
- Convert the settings default value. The notation allows for some
`function-style' notations to make the library more generic:
- env(Name)
- Get value from the given environment variable. The value
is handed to convert_setting_text/3 to convert the
textual representation into a Prolog term. Raises an
existence_error of the variable is not defined.
- env(Name, Default)
- As
env(Name)
, but uses the value Default if the variable
is not defined.
- setting(Name)
- Ask the value of another setting.
- Expression
- If Type is numeric, evaluate the expression.
env(Var)
evaluates to the value of an environment variable.
If Type is atom
, concatenate A+B+.... Elements of the
expression can be env(Name)
.