Support implicit conversion between types

ilya-stromberg ilya-stromberg-2009 at yandex.ru
Wed Sep 4 12:54:43 PDT 2013


On Wednesday, 4 September 2013 at 19:44:17 UTC, Namespace wrote:
>
> What's about:
>
> void bar(int i) {
>     bar(Foo(i));
> }
>
> ?

No, I wrote very simple example. I have 10 "from" types and a lot 
of different "bar" functions. Your way will be more painful then 
explicit conversion.


More information about the Digitalmars-d-learn mailing list