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 ...
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 ...