implicit construction operator
Nick Treleaven
nick at geany.org
Wed Feb 28 11:06:59 UTC 2018
On Monday, 26 February 2018 at 21:36:49 UTC, ketmar wrote:
> aliak wrote:
>
>> It makes libraries *much* more intuitive and expressive (C++
>> just got it wrong by choosing the wrong default). If you allow
>> library authors to opt in instead of opt out then it becomes a
>> conscious decision for one.
>
> library authors can create overloads for various argument
> types. with `foo(T...) (T args)` it is possible to generate
> conversions with CTFE. so we *already* have such feature.
No, we do not. Presumably you're not suggesting every function
ever written has to be a template, and has to manually support
every custom type ever written's chosen implicit conversions?
More information about the Digitalmars-d
mailing list