[fpc-pascal] Assigning pointer address

dhkblaszyk at zeelandnet.nl dhkblaszyk at zeelandnet.nl
Mon Oct 1 10:43:01 CEST 2012



I want to ask if casting an integer to a pointer is valid
over all platforms. See below: 

p: PInteger;
v: longint; 


v :=

p := PInteger(v); 

Of course, the value of the pointer
adress may vary, but in general is this a valid way to assign a pointer?
Or will some platforms or architecture give problems? 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20121001/8a48ef64/attachment.html>

More information about the fpc-pascal mailing list