Does the storage binding (related to the lifetime of the variable) allow static variables? Allow dynamic heap variables?
Does the storage binding (related to the lifetime of the variable) allow static variables? Allow dynamic heap variables?
There are some definitions of what static variable would be. Moon has no static variable mechanism, but it is powerful and flexible to achieve the same result through other mechanisms.
By default values are placed in heap through dynamic allocation and variables can point to these values. You use local
to switch to automatic allocation in stack .