implicit construction operator
TheFlyingFiddle
none at none.com
Tue Feb 27 17:32:45 UTC 2018
On Monday, 26 February 2018 at 23:33:48 UTC, H. S. Teoh wrote:
>> Not really a big deal (and auto kind of ruins it) but it would
>> make stuff consistent between user types and built in ones.
>
> Not sure what you mean here. In a user type, if opBinary!"/"
> returns an int, then you still have the same problem.
Yes, your right, did not really think that through. Also if you
overload opAssign you get implicit conversions in assign
expressions...
More information about the Digitalmars-d
mailing list