Type Helper only modifies stack copy instead of self
Original Reporter info from Mantis: Nitorami
-
Reporter name:
Original Reporter info from Mantis: Nitorami
- Reporter name:
Description:
Under some circumstances, a type helper on a simple type such as integer or double seems to modify a stack object rather than self.
Steps to reproduce:
Run the attached program. It should subtract 1000 from element (1,1) of the Matrix but it doesn't. It reminds me of the behaviour of getters, which return a stack copy of the object, and modifications to the object are not written back. But this is different and should work IMHO.
Same with 3.0.4. Also tried in the office where I have Lazarus with, I believe, FPC 3.0.2. Same behaviour. FPUtype does not seem to matter, neither other settings.
Mantis conversion info:
- Mantis ID: 38122
- OS: Win 10
- OS Build: ver 2004
- Platform: PC
- Version: 3.2.0
- Fixed in version: 3.3.1
- Fixed in revision: 47625 (#82957ec5),47747 (#1efeb585)
- Monitored by: » @onpok (Ondrej Pokorny), » @sergy.larin (Sergey Larin)