Signals and slots implementation in Delphi?

后端 未结 3 1571
粉色の甜心
粉色の甜心 2021-01-13 20:09

Does an implementation of the signals and slots mechanism for event dispatching exist for Delphi?

3条回答
  •  情话喂你
    2021-01-13 20:37

    Whilst you can implement multi-cast events yourself, they are not directly supported in the the language unlike in C# and VB.NET. Lack of language support makes any attempt to emulate multi-cast events rather clumsy.

    Interestingly, C++ lacks support for signals and slots and the Qt solution involves an extra process in the compilation tool chain, the Meta Object Compiler.

提交回复
热议问题