A const or var record cannot be initialized with a pointer to an absolute variable
Original Reporter info from Mantis: Laksen
-
Reporter name: Jeppe Johansen
Original Reporter info from Mantis: Laksen
- Reporter name: Jeppe Johansen
Description:
A constant or variable pointer cannot be initialized with a pointer to an absolute variable
Example:
type
TRecord = record
P1,
P2: pointer;
end;
var
var1: longint;
varabs: longint absolute 1234;
const
info: TRecord = (P1: @var1; // Works
P2: @varabs); // Won't work
Mantis conversion info:
- Mantis ID: 17118
- Version: 2.5.1
- Fixed in version: 2.6.0
- Fixed in revision: 15723 (#683ac0ea)