UFCS for templates
deadalnix
deadalnix at gmail.com
Fri Aug 9 05:59:43 PDT 2013
On Friday, 9 August 2013 at 00:34:31 UTC, JS wrote:
> On Thursday, 8 August 2013 at 17:55:04 UTC, Dicebot wrote:
>> On Thursday, 8 August 2013 at 17:35:02 UTC, JS wrote:
>>> Can we have UFCS for templates?
>>>
>>> e.g.,
>>>
>>> T New(T, A...)(A args) { }
>>>
>>>
>>> T t = T.New(args);
>>>
>>>
>>> Note, in this case, the type parameter is substituted.
>>
>> As always, providing motivating use case and advantage/cost
>> comparison is usual requirement to make something happen.
>>
>> DIP's exist for a reason.
>
> Are you not smart enough to come up with use cases yourself?
> This is not some extremely rare thing that might be used 1 in
> 10^100.
Even while agreeing the proposal is a good you succeed in looking
bad to me. Dude, the world do not revolve around you. Deal with
it.
More information about the Digitalmars-d
mailing list