implicit construction operator

aliak something at something.com
Tue Feb 27 06:43:08 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.

Touche.


More information about the Digitalmars-d mailing list