There is also the Nim "discard" statement.
Just change the default to not allowing return values to be discarded. When you really want to, do:
``` cast(void) function_with_return_value(…) ``` Or something like that.
Ola Fosheim Grøstad via Digitalmars-d-announce Wed, 09 Feb 2022 11:51:03 -0800
There is also the Nim "discard" statement.
Just change the default to not allowing return values to be discarded. When you really want to, do:
``` cast(void) function_with_return_value(…) ``` Or something like that.