Interesting rant about Scala's issues
Dmitry Olshansky
dmitry.olsh at gmail.com
Fri Apr 4 03:41:10 PDT 2014
04-Apr-2014 13:16, Walter Bright пишет:
> 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.
The difference between opImplictCast and alias this being ... ?
--
Dmitry Olshansky
More information about the Digitalmars-d-announce
mailing list