[fpc-devel] Tests of observer feature [was: Considerations about observer]
luiz americo pereira camara
luizmed at oi.com.br
Thu Nov 29 22:39:36 CET 2012
2012/11/29 Graeme Geldenhuys <graeme at geldenhuys.co.uk>:
> Hello luiz,
>
> Thursday, November 29, 2012, 12:31:41 PM, you wrote:
>
>> BTW: Graeme already pointed, that the Observer methods should be
>> public. Does not makes sense to protect methods that are exposed by an
>> interface.
>
> When did I say that? [Though my memory has been failing me once or
> twice. :)]
In the message of the example observer:
"
1) I would probably surface the IFPObserver methods to Public. Though
there is good arguments to not do it either - thus you are forced
to use correct interface usage... via Supports(), getting a
interface pointer back, and using that interface pointer to make
method calls.
"
Luiz
More information about the fpc-devel
mailing list