September 19, 2019 The biggest issue in Dlang | ||||
---|---|---|---|---|
| ||||
auto main() { return int(0); } for some reasons does not work WOW :-D this works ok: void main() { return other(); } auto other() { return; } so I believe even this should work: auto main() { return; } |
September 19, 2019 Re: The biggest issue in Dlang | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Kozak | On Thursday, 19 September 2019 at 20:50:30 UTC, Daniel Kozak wrote: > auto main() > { > return int(0); > } > > for some reasons does not work WOW :-D > > this works ok: > void main() > { > return other(); > } > > auto other() > { > return; > } > > so I believe even this should work: > > auto main() > { > return; > } I am aware of https://dlang.org/spec/function.html#main, just seems wierd auto does not work too |
Copyright © 1999-2021 by the D Language Foundation