On Tue, 11 Feb 2014, Marco van de Voort wrote:

In our previous episode, Mark Morgan Lloyd said:
If a method a.WriteBuff() is passed another method b.finish() as a
parameter, can it access b before calling finish(), or would this
require an explicit parameter?

If yes, how?

tobject(tmethod(func).data)

A nice one from the 'Dirty tricks' section :)
It might be better to change the WriteBuff to accept an object in that case...

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to