www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Return type based overloading and multiple return values via templates

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:

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