<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p> </p>
<div>Hi,</div>
<div> </div>
<div>I want to ask if casting an integer to a pointer is valid over all platforms. See below:</div>
<div> </div>
<div>
<p>p: PInteger;<br />v: longint;</p>
<p>[...]</p>
<p>v := 4235423;</p>
<p>p := PInteger(v);</p>
<p> </p>
<p>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?</p>
<p> </p>
<p>Darius</p>
</div>
</body></html>