Hello all,
I thought pointer Delphi was as flexible as pointers in C.
I just realize that it is not. Or I haven't figured out how
to use pointers.
In C, I can randomly access any element in a memory block.
For example, I can do this:
int a[10], *pi, i;
pi = a;
for(i = 0; i < sizeof(a); i++)
printf("%d\n", *(p + i));
Is it possible to access memory in this fashion
*(p + i)
using pointers in Delphi? It seems that it's only possible
with PChar, but not for pointers for any other data types.
Is that right?
--
Best regards,
Jack
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi