Add support implicit conversion between types

Benjamin Thaut code at benjamin-thaut.de
Fri Sep 6 04:32:11 PDT 2013


Am 06.09.2013 13:27, schrieb Dicebot:
> On Friday, 6 September 2013 at 11:04:31 UTC, Peter Alexander wrote:
>> Implicit conversions open up a whole can of worms for the sake of a
>> small amount of convenience.
>>
>> I'm not sure it's a fair trade.
>
> Agreed. It was quite common source of troubles in my C++ days and have
> never offered much convenience.

Its only a source of troubles in C++ because it is the default behavior. 
But if you design a library it can make the usage of your api easier and 
also you have a few more options to stay backwards compatible with your 
old api.


More information about the Digitalmars-d mailing list