[fpc-devel] Recent added support for Observer pattern in FCL

Graeme Geldenhuys graeme at geldenhuys.co.uk
Tue Aug 28 15:43:20 CEST 2012

On 28/08/12 13:15, michael.vancanneyt at wisa.be wrote:
> For example, on my 'doubtful' list I had "ooPropertyChange", to be used
> in combination with the GetPropInfo() and a call in TPersistent:
> FPOPropertyChanged(Const APropName : String);

This could work, and I can see use-cases where this could be useful. I'm 
not sure how much overhead it will add though, but probably very small 
if done correctly. How would streaming affect this? eg: populating 
objects from a .lfm file. I don't use such streaming, but thought I need 
to mention it. For more accurate information, I guess the best would be 
to do a reference implementation, create a test case, and decide from there.

   - Graeme -

More information about the fpc-devel mailing list