On Wed, 25 May 2016, Jonas Maebe wrote:


Sven Barth wrote on Wed, 25 May 2016:

An method pointer is always automatically constructed by the compiler
consisting of the address of the method (here IFPReportFilter.RenderReport)
and the instance that method belongs to (in this case the FReportFilter),
so this will indeed work without problems.
The question however is whether it is guaranteed to keep working and isn't
merely the use of an implementation detail...

It works by design. I can't think of a reason why it would stop working.

What is the self in case of an interface that is not in a FPC program ?

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

Reply via email to