Can anyone explain this?

BlitzMax Forums/BlitzMax Programming/Can anyone explain this?

so a global inside a function is similar to a static var?

Exactly :)

I would prefer globals in types/functions to be renamed to static, and fields renamed to local, just for clarity.