Discussion Thread: DIP 1032--Function pointers and Delegate Parameters...--Community Review Round 1

Walter Bright newshound2 at digitalmars.com
Sat Apr 4 07:18:54 UTC 2020


On 4/3/2020 5:09 PM, H. S. Teoh wrote:
> IOW, it should be the *function* that inherits attributes from the
> passed-in delegate, not the other way round as proposed by this DIP.

Then you've got the problem of two delegate parameters with contradictory 
attributes.

But worse, lambdas get their attributes inferred. Pass a simple lambda, and 
suddenly the function it gets passed to must be pure? This isn't going to work.



More information about the Digitalmars-d mailing list