Feedback Thread: DIP 1033--Implicit Conversion of Expressions to Delegates--Community Review Round 1

Steven Schveighoffer schveiguy at gmail.com
Wed Apr 22 12:14:16 UTC 2020


> Function Pointers
> Implicit conversion of expressions to function lambdas is not done. There doesn't seem much point to it, as there will be no arguments to the function lambda, meaning the expression can only consist of globals.

Why does it have to consist only of globals?

int delegate() = 3;

doesn't use any globals. Why shouldn't this work?

int function() = 3;

Also typo here:

> Currently, arguments to lazy paraeters 

parameters

-Steve


More information about the Digitalmars-d mailing list