[fpc-pascal] Intercept call to a property, method or attribute
Sven Barth
pascaldragon at googlemail.com
Sun Mar 3 18:16:18 CET 2013
On 03.03.2013 18:03, Joao Morais wrote:
> Is there some compiler magic I am missing?
Nope, you don't miss anything. The only thing which *could* help you is
when the new RTTI unit is implemented which contains a
TVirtualMethodInterceptor which allows you to - as its name suggests -
intercept all calls to virtual methods, change their parameters, swallow
or raise exceptions or discard the call completely. This will only work
on virtual methods however (because this constructs a special VMT on the
fly) and it might still take some time until this is implemented.
Regards,
Sven
More information about the fpc-pascal
mailing list