Implementation of signals and slots in Delphi?

Is there an implementation for Delphi of a signal and slot mechanism for event dispatching?

+4
source share
3 answers

Search for multicast events. There are several implementations, for example,

Some of them need generics, therefore only D> 2009.

+4
source

Despite the fact that you yourself can implement multi-sheeted events, they are not supported directly in the language, unlike C # and VB.NET. The lack of language support makes any attempt to emulate multiple events quite awkward.

It is interesting that in C ++ there is no support for signals and slots, and the Qt solution is associated with an additional process in the chain of compilation tools - the compiler of meta objects.

+2
source

I spent some time ago on how the Allen Bauer Multicast event code works. It has some limitations, but works well in my code. You can see the code here .

Of course it only works in Delphi> 2009

0
source

All Articles