3 ms·
No, that's a fair comment. I have spent a surprising proportion of the past 10 years moving initialization calls from <random problem-causing place> into `main'
by to3m 15y ago
No, that's a fair comment. I have spent a surprising proportion of the past 10 years moving initialization calls from <random problem-causing place> into `main', so whenever I see a call to something like `someinitialization' I just assume it's in `main' along with all of the rest of them.
But it could easily be somewhere creepy and random, and the side-effects a bit hard to spot, making it harder to find.
(Which, of course, is why you should always put all of this stuff in `main' ;)