Multiple implicit type converters
Bahman Movaqar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Sep 11 12:57:21 PDT 2015
On Friday, 11 September 2015 at 19:51:09 UTC, Dave Akers wrote:
>> 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?
Hmm...there's already the `to` template, right?
More information about the Digitalmars-d-learn
mailing list