Is returning void functions inside void functions a feature or an artifact?
Rekel
paultjeadriaanse at gmail.com
Mon Aug 2 16:39:43 UTC 2021
On Monday, 2 August 2021 at 14:46:36 UTC, jfondren wrote:
> C, C++, Rust, and Zig are all fine with this. Nim doesn't like
> it.
I had no clue, never seen it used in any case. I've always
assumed one couldn't return void as it's not a value. I guess
intuitions aren't always universal 😅. Good to know c is fine with
this too! ^^
More information about the Digitalmars-d-learn
mailing list