create Global
fun createGlobal(variableType: A_Type?, module: A_Module, name: A_String, writeOnce: Boolean): AvailObject
Create a shared variable, which may be write-once if so indicated. This method should only be used to create module constants, and maybe eventually local constants. It should not be used for converting existing variables to be shared.
Return
The new shared variable.
Parameters
variable Type
The variable type.
module
The A_Module that this global is being defined in.
name
The name of the global. This is captured by the actual variable to make it easier to quickly and accurately reproduce the effect of loading the module.
write Once
Whether the variable is to be written to exactly once.