.. highlightlang:: us .. index:: _g .. _g: _g == .. us.tag _g NOTREADYENGLISH Programming New5300 The :ref:`_g ` function returns a reference to a global UniScript object. .. function:: o = _g() .. us.return **Return Value** *o* is a UniScript object created a startup. .. us.comment **Comment** The object can be used to access variables instead of using global variables. .. us.example **Example** :: def my_init_func_old() { global my_init; if (my_init == 1) { return; } do_my_init(); my_init = 1; } def my_init_func_new() { if (_g().my_init == 1) { return; } do_my_init(); _g().my_init = 1; } .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - 5.30 - New. .. seealso:: :ref:`overview-programming`, :ref:`overview-uniscript-objects` :sub:`id-1027441`