On Friday, 11 September 2015 at 16:33:52 UTC, Meta wrote:The only ways to get implicit conversion between two types in D are through `alias this`, inheritance, or implementing an interface.That's enough for me, I suppose.I am thinking of having a family of functions in my structs/classes as `as` family, such as `asDouble`, `asFooBar`.
Would it be possible to create it as an 'as' template?