On Fri, 4 Jul 2003, Peter N Lewis wrote:
I am getting an error "incompatible types in assignment" on Inc(CSPtr(c))
It seems the cast of the pointer inside the Inc procedure is confusing it. What is especially weird is that the case does not even change the type because!
{$x+} program testpas8;
type U8 = Cardinal attribute ( size = 8); U8Ptr = ^U8; CSPtr = U8Ptr;
var c: CSPtr;
Since c is a pointer where does it point?
begin Inc(CSPtr(c)); end.
If you increment c just where does it point?
Russ