an object as const parameter can't have properties change
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
A class instance that you pass to a procedure as const parameter,
will give a compile error "change.pas(10,3) Error: Can't assign values to const variable"
The property changes, not the class instance pointer.
In Delphi this program compiles fine.
Additional information:
Reporter: Luk Vandelaer
EMail: luk dot vandelaer at wisa dot be
Mantis conversion info:
- Mantis ID: 3239
- OS: GO32V2
- Version: ?
- Fixed in version: 1.0.3