Breaking ";" rule with lambda functions

ag0aep6g anonymous at example.com
Mon Aug 1 15:39:06 UTC 2022


On Monday, 1 August 2022 at 15:31:51 UTC, pascal111 wrote:
> Surely, because it seems that you are real man, your word must 
> be taken. Isn't `(foo) { return bar; }` an anonymous function 
> or am I a wrong?!! It IS a function, not an expression.

It's both an anonymous function and an expression. I don't know 
why you think it can't be both.


More information about the Digitalmars-d-learn mailing list