TStream.SetSize() incompatibility
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
While defining new TStream descendants the overriden method must have two separate declarations for Delphi and fpc:
// delphi
TMyStream.SetSize(const NewSize: Int64); override;
// fpc
TMyStream.SetSize(NewSize: Int64); override;
The problem is the lack of "const" keyword.
Additional information:
Reporter: Matthias Hryniszak
EMail: matthias at hryniszak dot de
Mantis conversion info:
- Mantis ID: 5786
- OS: All
- Version: 1.9.9
- Fixed in version: 1.9.9