.. _stdlib_delegate: ===================================== C#-like multicast delegate type macro ===================================== .. das:module:: delegate C#-like multicast delegate (multicast callback) via type macro. Generates a struct that holds a list of handlers (lambdas or function pointers) which are all invoked when the delegate is called. +++++++++++++++++++ Delegate type macro +++++++++++++++++++ * :ref:`delegate (macroArgument: TypeDeclPtr; passArgument: TypeDeclPtr; FuncType: TypeDeclPtr) : TypeDeclPtr ` .. _function-delegate_delegate_TypeDeclPtr_TypeDeclPtr_TypeDeclPtr: .. das:function:: delegate(macroArgument: TypeDeclPtr; passArgument: TypeDeclPtr; FuncType: TypeDeclPtr) : TypeDeclPtr Type macro that generates a delegate struct from a function or lambda type. :Arguments: * **macroArgument** : :ref:`TypeDeclPtr ` * **passArgument** : :ref:`TypeDeclPtr ` * **FuncType** : :ref:`TypeDeclPtr `