Interesting rant about Scala's issues

Walter Bright newshound2 at digitalmars.com
Fri Apr 4 02:16:25 PDT 2014


On 4/4/2014 12:23 AM, Rory McGuire wrote:
> On Fri, Apr 4, 2014 at 9:05 AM, Walter Bright <newshound2 at digitalmars.com
> <mailto:newshound2 at digitalmars.com>> wrote:
>
>     You can disable the implicit conversion to int with this scheme. The alias
>     this only takes effect if there is no other member that will take the operation.
>
> What is the exact method of disabling the implicit cast? I had a look after you
> sent your last mail. Didn't find anything in the spec.

It's supposed to be by adding your own opImplicitCast overload, but that isn't 
implemented yet.


More information about the Digitalmars-d-announce mailing list