[fpc-pascal] Translate C code

Sven Barth pascaldragon at googlemail.com
Sat Jan 6 14:20:46 CET 2018


Am 06.01.2018 12:23 schrieb "Ryan Joseph" <ryan at thealchemistguild.com>:



> On Jan 6, 2018, at 5:25 PM, Karoly Balogh (Charlie/SGR) <
charlie at scenergy.dfmk.hu> wrote:
>
> So it doesn't crash, because it never loads from this "invalid" address it
> calculates.

Are we talking about the address on the stack at compile time? If no memory
was ever allocated (which I thought nil suggested) then I don’t see where
it’s getting an address of anything.


In this case Nil does in fact have the address 0. Thus the address of a
field in a record with address 0 is its offset in the record.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180106/e7f27ab0/attachment.html>


More information about the fpc-pascal mailing list