Multiple delegates, contextual delegates

XavierAP n3minis-git at yahoo.es
Wed Jun 26 12:39:51 UTC 2019


On Wednesday, 26 June 2019 at 09:48:35 UTC, angel wrote:
>
> Another question regarding the "-=" operator - a delegate 
> removal.
> How can you recognize the delegate that has to be removed ? Do 
> you need to type in the delegate code, just to identify the 
> candidate for removal ?

This proposal looks equivalent to delegate concatenation in C#. 
In that case -= relies on the == operator. C# delegates are 
classes inheriting the System.Delegate abstract class (which 
already provides implementations for all these operatorrs).

https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/delegates


More information about the Digitalmars-d mailing list