Why does global initializers need to be constant?

BlitzMax Forums/BlitzMax Programming/Why does global initializers need to be constant?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

local globals are function globals or type globals.
They are only globals within their scope:

Function global: This is something like a changable function constant. You can set this global and each time the function is called it will still have the same value as the last time this function was executed and the function set. This is a very good thing for counters and other things.

type globals: this globals are unique to ALL objects you create of this type. the most common usage for example is the type list, that is used to handle all objects of this specific type.