IF Computer > MINERVA > Manual > Reference > Predicates > global variables > get_global/2

get_global/2

MINERVA
ifcomputer logo
f
Expert Services on the Web

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.

document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/global_variable/get_global/print_en.html
published 2008/8/25 update 2003/2/13 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
Back> managed with ubiCMS