newVariableWithContentType

fun newVariableWithContentType(contentType: A_Type, optionalInitialValue: A_BasicObject? = null): AvailObject

Create a VariableDescriptor variable which can only contain values of the specified type. The new variable initially holds no value, unless one is specified as the optionalInitialValue.

Return

A new variable able to hold the specified type of objects.

Parameters

contentType

The type of objects the new variable can contain.

optionalInitialValue

The optional unchecked initial value of the variable, or null.