When are static class variables initialized during runtime?
- by Jake
Hi,
I have the following:
class Thing
{
   static Thing PREDEFINED;
   type _private;
   Thing() { _private = initial_val; }
}
Thing Thing::PREDEFINED = redefined_val;
in global scope, i have this
Thing mything = Thing::PREDEFINED;
but it does not have the desired effect. mything is still initial_value and there were no errors too.
So, may I ask when is the static class variable initialized during runtime?