Breaking ";" rule with lambda functions

pascal111 judas.the.messiah.111 at gmail.com
Mon Aug 1 15:52:34 UTC 2022


On Monday, 1 August 2022 at 15:39:06 UTC, ag0aep6g wrote:
> 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.

Nice that you still prove it to me. I thought something will 
happen to me in my life or area as a punishment from GOD who is 
watching everything because my insisting they are functions.

You didn't say before that they are both functions!!

But how can we accept that both are functions and expressions at 
the same time and we know that expressions can be used to build 
functions themselves?!! I think they are not the same.


More information about the Digitalmars-d-learn mailing list