problem with type usage

BlitzMax Forums/BlitzMax Programming/problem with type usage

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

globals initialization always worked different.
Within a function / method they behave even worse. If you have global someglob:ttype = new ttype this is a const initialize. it won't create a second instance. if you want a second one you must put the definition and instance creation on different lines.

Thats hard to catch and very totally not documented. Most learned it the "head against the bricks" way me including a long time ago ...