get_global/2

get the value of a global variable.

get_global(+Name, -Value)

get_global/2 unifies Value with the value of the global variable Name.

Arguments

Name          atom (name of a global variable)
Value         term

Examples

set_global(text, 'hello world'), get_global(text, X). Succeeds with substitution X <- 'hello world'.

Standard

This predicate is not part of the ISO-Prolog Standard.

See also

current_global/1, set_global/2.


Up read on...