digitalmars.D - Return type based overloading and multiple return values via templates
- Steve Biedermann (6/6) Aug 04 2016 Every few weeks D amazes me, with how flexible this language is.
Every few weeks D amazes me, with how flexible this language is. Today, I'm amazed that I could implement multiple return values and return type based function overloading on a library level: https://github.com/hardliner66/D_ReturnLowering Probably not the best code. Also not as comfortable to use, as if it was a language feature. But still pretty cool.
Aug 04 2016