Interesting rant about Scala's issues

Walter Bright newshound2 at digitalmars.com
Fri Apr 4 00:05:31 PDT 2014


On 4/3/2014 9:54 PM, Meta wrote:
> In the case of your example, alias this does not make
> it typesafe, as a MyInt can still be implicitly converted to int.

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.


More information about the Digitalmars-d-announce mailing list