Global variable inside type exist when discarded.

BlitzMax Forums/BlitzMax Programming/Global variable inside type exist when discarded.

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.

Whoops, yeah, i meant that.

I'm not sure why you can reference the global through a reference. I doubt that it actually is a reference anymore, and the compiler simply figures you meant to change the global of the type rather than the instance. And since this is a compiler decision rather than a run-time decision it need not actually still exist.