Interesting rant about Scala's issues

Rory McGuire rjmcguire at gmail.com
Fri Apr 4 04:30:19 PDT 2014


First use alias this go "import" functionality transparently. Then use
opImplicitCast to set what can be implicitly casted to.
On 04 Apr 2014 12:45 PM, "Dmitry Olshansky" <dmitry.olsh at gmail.com> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20140404/81c60570/attachment.html>


More information about the Digitalmars-d-announce mailing list