Is returning void functions inside void functions a feature or an artifact?

Rekel paultjeadriaanse at gmail.com
Mon Aug 2 16:42:14 UTC 2021


On Monday, 2 August 2021 at 14:51:07 UTC, H. S. Teoh wrote:
> This is intentional, in order to make it easier to write 
> generic code without always having to special-case functions 
> that don't return anything.

Ooh that indeed seems useful. Thanks for the hint.
Also slightly off topic, but when would one use an alias instead 
of a function/delegate? I haven't used aliases before.


More information about the Digitalmars-d-learn mailing list