On Thu, Jan 31, 2013 at 10:25 PM, Sven Barth <pascaldra...@googlemail.com> wrote: > 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...
Thanks :) > > Regards, > Sven > > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal