Length, SetLength, Copy, etc. have Integer istead of SizeInt type
Original Reporter info from Mantis: p_daniel
-
Reporter name:
Original Reporter info from Mantis: p_daniel
- Reporter name:
Description:
In the documentation, Length, SetLength, Copy, and probably some other related functions use Integer type instead of SizeInt for length, offsets and indexes. At the same time, Delete, Insert, Pos, and may others use SizeInt as expected.
I've seen a lot of mistakes (both in third-party and FCL code) that people do because of this: they use Integer instead of SizeInt everywhere for working with strings and dynamic arrays. I understand that so large sizes are usually not common, but anyway it gives potential bugs.
Mantis conversion info:
- Mantis ID: 29789
- Version: 3.0.0
- Fixed in version: 3.1.1
- Fixed in revision: 33194
- Target version: 3.0.2