[fpc-pascal] pointer address safety
idokan at gmail.com
Thu Jan 31 21:40:14 CET 2013
On Thu, Jan 31, 2013 at 10:25 PM, Sven Barth
<pascaldragon at googlemail.com> wrote:
> On 31.01.2013 19:55, ik wrote:
>> 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...
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
More information about the fpc-pascal