Implicit conversion without alias this?
Jonathan M Davis via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jun 3 10:50:34 PDT 2016
On Friday, June 03, 2016 16:12:50 maik klein via Digitalmars-d-learn wrote:
> Any ideas?
Well, alias this is the only way that D supports any kind of implicit
conversions for user-defined types. So, if you want to have an implicit
conversion for your type, you're going to have to figure out how to do it
with alias this. If you can't, then you can't have an implicit version.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list