Deduct and return class type

Paul Backus snarwin at gmail.com
Sat Jan 23 06:04:26 UTC 2021


On Saturday, 23 January 2021 at 05:54:09 UTC, Виталий Фадеев 
wrote:
> But, how to create class instance with type deduction in usual 
> way ?
>
>     auto list = new List( extensions );

You can't; there's no type deduction for constructors.


More information about the Digitalmars-d-learn mailing list