Perfect forwarding

Boris Carvajal boris2.9 at gmail.com
Fri Jul 31 13:44:38 UTC 2020


On Thursday, 30 July 2020 at 08:36:26 UTC, Manu wrote:
>> I now saw that Manu clarified what he meant.
>>
>> Also I do realize that what we actually need is for 
>> `Parameters!fun[0]` to return a parameter object that includes 
>> not just the type but also the parameter name, UDAs attached 
>> and storage classes. If for example `ref` was a type 
>> qualifier, or just otherwise preserved by `alias`-ing it would 
>> help, but not solve the whole issue.
>>
>
> UDA's and default args are in-language concepts, alias/tuples 
> can handle them, and don't require any particularly special 
> meta to handle.

You can't alias default args like: fun(time_t a = time(null))


More information about the Digitalmars-d mailing list