createGlobal

fun createGlobal(    variableType: A_Type?,     module: A_Module,     name: A_String,     writeOnce: Boolean): AvailObject

Create a write-once, shared variable. 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

variableType
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.

writeOnce

Whether the variable is to be written to exactly once.