Add support implicit conversion between types
Benjamin Thaut
code at benjamin-thaut.de
Fri Sep 6 04:52:32 PDT 2013
Am 06.09.2013 13:44, schrieb deadalnix:
> On Friday, 6 September 2013 at 11:04:31 UTC, Peter Alexander wrote:
>> On Friday, 6 September 2013 at 10:33:07 UTC, ilya-stromberg wrote:
>>> Do you have any plans to support implicit conversion between types?
>>
>> Implicit conversions open up a whole can of worms for the sake of a
>> small amount of convenience.
>>
>> I'm not sure it's a fair trade.
>
> I think we should be able to do it, but in unconvenient ways.
>
> Like alias this + a property.
But that doesn't work for construction. Also its not possible to do it
for primitive types (especially string comes to mind)
More information about the Digitalmars-d
mailing list