Add support implicit conversion between types

ilya-stromberg ilya-stromberg-2009 at yandex.ru
Fri Sep 6 06:31:39 PDT 2013


On Friday, 6 September 2013 at 13:25:37 UTC, Flamaros wrote:
> It's difficult to never forget the "explicit" keyword in c++, 
> and this little mistake can make you loose a lot of time.
>
> I prefer to only have explicit conversions with cast or 
> constructors calls, that all make the code easier to understand.

Yes. I sugest keep current D bechavior by default, but add 
"implicit" keyword.
It allows to add implicit cast only if it SAFE.


More information about the Digitalmars-d mailing list