Empty functions

Jan Hönig hrominium at gmail.com
Thu Oct 29 08:41:32 UTC 2020

I have asked this on StackOverflow[1]. I have received a valid 
answer, which solves my problem, however, I have still not 
understood, why some versions of it work and some don't.

The code is here[2].

I don't understand why `a` compiles just fine, while `b` and `c` 

I think, that I don't understand what `void function()` does or 
Can someone explain it to me?

And I don't see why `(){}` works and `() => {}` does not.

[2]: https://run.dlang.io/is/GFe9Ht

More information about the Digitalmars-d-learn mailing list