enum functions

Adam D Ruppe destructionator at gmail.com
Tue Jan 10 12:55:34 UTC 2023


On Sunday, 8 January 2023 at 18:42:58 UTC, Salih Dincer wrote:
> I'm wondering 2 things; firstly, does having an enum mean there 
> is no auto-return? Or could it be CTFE?

It means nothing. The keyword tells the parser a function is 
about to begin, which triggers return type inference (exactly the 
same as `auto`), but otherwise it is completely ignored.


More information about the Digitalmars-d-learn mailing list