Ross Levis wrote:
> I see.  So effectively, inc(p) gets translated to inc(p,4) by the
> compiler.

No, Inc(P) gets translated to P := Ptr(Cardinal(P) + SizeOf(P^)). Inc(P,
4) gets translated to P := Ptr(Cardinal(P) + 4 * SizeOf(P^)).

You can see an example of pointers, including the Inc procedure, at the
Delphi Basics site:

http://www.delphibasics.co.uk/Article.asp?Name=Pointers

-- 
Rob


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to