Multiple implicit type converters
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Sep 11 09:31:43 PDT 2015
On Friday, 11 September 2015 at 16:25:53 UTC, Bahman Movaqar
wrote:
> As only one `alias this` is possible for any type, how should
> one implement multiple implicit type converters?
multiple alias this is supposed to work and might some day fyi
But for today, the explicit is the only way to go. That's easy to
do, just write like a .get method or something that does the
conversion and returns it.
More information about the Digitalmars-d-learn
mailing list