Now I can use %set_variable_value function to define global variables. But I'm afraid that this is not documented feature or bug and it will be fixed in feature releases. So should this function define variables (this functional was planned) or only set values?
This code, for example, will define and initialize global $a:
%set_variable_value("$a", "$a initialized")
A -> B: $a