イフコンピュータ > MINERVA > マニュアル > レファレンス > 述語 > グローバル変数 > get_global/2

get_global/2

MINERVA
ifcomputer logo
f
Expert Services on the Web

グローバル変数の値を得る。

get_global(+名前, -値)

get_global/2 は、グローバル変数 名前の値で を単一化する。

引数

名前          アトム (グローバル変数の名前)
項            項

set_global(text, 'hello world'), get_global(text, X). X <- 'hello world' の代入で、成功。

標準

この述語は、ISO-Prolog 標準には含まれない。

関連

current_global/1, set_global/2.

document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/global_variable/get_global/print_jp.html
published 2008/12/1 update 2003/2/13 (c) 1996-2006 IF Computer Japan
IF Computer 〒113-0022 Tel 03-5814-3352 start (AT) ifcomputer.com
Customer Support 東京都文京区千駄木5-28-2   http://www.ifcomputer.co.jp
戻る> managed with ubiCMS