@ operator behaviour incompatible to TP
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
Compiler 0.99.13 [1999/09/14] : When the @ operator is applied to a variable reference of the form @(r^)^.m, it will cause syntax error complaining that '.m' is invalid. However, it causes no problem in TP/Delphi. It seems that the FP gives higher precedence to the @ operator than the '.' field specifier. However, according to syntax rule the '.' is part of the variable reference so it should be fully deferenced before @ is applied.
Additional information:
Reporter: Andy Tam
EMail: atam at idirect dot com
Mantis conversion info:
- Mantis ID: 2649
- OS: All
- Version: ?
- Fixed in version: 0.99.13