class constructors and initialization sections are executed even if main program is empty
Original Reporter info from Mantis: Thaddy
-
Reporter name: Thaddy de Koning
Original Reporter info from Mantis: Thaddy
- Reporter name: Thaddy de Koning
Description:
class constructors and initialization sections are executed even if main program is empty.
This is potentially dangerous, because code can be executed without the programmers intention.
I suggest to introduce a warning for both of these cases and finalization sections too.
This is important, because library writers can hide executable code from a programmer and to many programmers it is not always obvious to actually examine the code they are using from third parties.
Mantis conversion info:
- Mantis ID: 36625
- OS: all
- OS Build: all
- Platform: all
- Version: 3.3.1