Global

Global

sealed class Global

From the docs:

A global instance is the runtime representation of a global variable. It holds an individual value and a flag indicating whether it is mutable.


globalinst ::= {value val, mut mut}

The value of mutable globals can be mutated through variable instructions or by external means provided by the embedder.

Fields

Name Description
abstract var value: T
abstract mutable: Boolean

Methods

update

abstract fun update(value: Number)

Parameters

Name Description
value: Number

ReturnValue

Name Description
Unit