[fpc-pascal] Intercept call to a property, method or attribute

Joao Morais jcmoraisjr at gmail.com
Sun Mar 3 18:20:17 CET 2013


On Sun, Mar 3, 2013 at 2:16 PM, Sven Barth <pascaldragon at googlemail.com> wrote:
> 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.

Great new! Where do I click +1? =)

2.8 or pos 2.8 roadmap?

Joao Morais



More information about the fpc-pascal mailing list