DIP 52 - Implicit conversions

Simen Kjærås simen.kjaras at gmail.com
Sat Dec 14 15:52:15 PST 2013


On 2013-12-13 01:23, IgorStepanov wrote:
> IMO, implicit conversion possibility for user types should be in a
> language, but this possibility should seems unattractive for user. User
> should know that he can use this ability only if he sure that he want it.

Absolutely.


> May be opImplicitCastFrom method is a good solution, but it should be a
> static method whick accept T arg and returns UserType object.

That was the plan. Updated the DIP to specify this.

--
   Simen


More information about the Digitalmars-d mailing list