How exactly does a = operator compare when it comes to types pointer...
PTestXY = ^TTestXY;
TTestXY = record
x: integer;
y: integer;
end;
procedure ablbaslalbasbl;
var: a, b: PTestXY;
begin
....some other code, imagine we have assigned the same pointer to both a and b!
if a = b then begin
// do some stuff if pointer "a" is "b"
end;
end;
I would believe the operator = means: "a" is pointing at same address as "b" - but no, it did compare something(?) else.... !? I had to change to:
if Addr(a) = Addr(b) then begin
// do some stuff if pointer "a" is "b"
end;
...What am I missing here, I can't see the logic here!??