[fpc-pascal] [PATCH] Addition of OnNotify event on "TFPGObjectList" and "TFPGList" triggered on the insert, delete and extract methods.

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Sat Feb 20 00:22:02 CET 2016


On 2016-02-19 23:04, Sven Barth wrote:
> There's no need for a sample. This degradation is the whole reason why the
> non-generic classes TFPObjectList and TFPList exist compared to TObjectList
> and TList which do have notifications.

I don't use Generics so it doesn't bother me either way. But purely from
a software design point of view, it should be quite easy to create a
list where notification can be enabled or disabled at runtime - maybe as
a parameter to the constructor or via a property. On disabling
notification there should be near zero degradation - at least not
something noticeable.

Just my 2ยข worth.


Regards,
  - Graeme -




More information about the fpc-pascal mailing list