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

2013-03-03 Thread Sven Barth
On 03.03.2013 18:20, Joao Morais wrote: On Sun, Mar 3, 2013 at 2:16 PM, Sven Barth 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 co

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

2013-03-03 Thread Joao Morais
On Sun, Mar 3, 2013 at 2:16 PM, Sven Barth 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 TVirtualMethodIntercepto

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

2013-03-03 Thread Sven Barth
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 a

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

2013-03-03 Thread Joao Morais
Hello list. I need to implement lazy loading for an OPF so I need to intercept the read call to a property. Lets take the following classes: TClient = class private FName: string; published property Name: string read FName write FName; end; TInvoice = class pri