Return type based overloading and multiple return values via templates
Steve Biedermann via Digitalmars-d
digitalmars-d at puremagic.com
Thu Aug 4 12:03:48 PDT 2016
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.
More information about the Digitalmars-d
mailing list