[fpc-pascal] pointer address safety
Sven Barth
pascaldragon at googlemail.com
Thu Jan 31 21:25:33 CET 2013
On 31.01.2013 19:55, ik wrote:
> Hello,
>
> What is the safest (no memory corruption etc...) way to use format
> string, and by using '%P' pass a class memory address ?
>
> Does casting to Pointer good, or is it unsafe ?
As Format does not support objects being provided to it you MUST even
cast to Pointer if you want it printed. :)
And as classes instances are implicit pointers there is no problem...
Regards,
Sven
More information about the fpc-pascal
mailing list