Discussion Thread: DIP 1043--Shortened Method Syntax--Community Review Round 1

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Fri Feb 4 19:10:49 UTC 2022


On Friday, 4 February 2022 at 17:18:54 UTC, Tejas wrote:
> Actually, the following compiles:
> ```d
> void funcc()
> {
> }
>
> void func()
> {
>     return funcc();
> }
> void main()
> {
>     func();
>
> }
> ```

That syntax sucks. void isn't constructible. It only makes sense 
if you also allow ```return void();```



More information about the Digitalmars-d mailing list