No warning on refed but NEVER initialized array
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
I do understand that it is impossible to check if an individual array element is UNinitialized, but i hope that you good FPC-guys will understand that if NO element of an array has ever been assigned a value then any use of such an array deserves a WARNING. IT is as simple as that. The KISS rule is ok, but i say: Keep it simple, but not simplistic. Please dont say that this is not a bug. I say that it is a design error (ie worse than a bug), because FPC is trying to catch UNinitialized variables, and a NEVER initialized variable (including arrays) is the most TRIVIAL case of UNinitialized variables. Thanx 4 understanding my elementary logic. In fact this case happened in a real old prog today in a shoot-off between FPC and my ANA (= analyzer, not a woman :-).
Additional information:
Reporter: Naj Kejah
EMail: universario at hotmail dot com
Mantis conversion info:
- Mantis ID: 5613
- OS: GO32V2
- Version: 1.9.6
- Fixed in version: 1.9.7