UFCS for templates
    Tommi 
    tommitissari at hotmail.com
       
    Tue Aug 13 10:53:43 PDT 2013
    
    
  
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.
A while back I made this enhancement request:
http://d.puremagic.com/issues/show_bug.cgi?id=8381
It might be similar to what you're proposing (although it's not 
clear what it is that you're proposing).
I'd be interested in hearing some actual use cases for this 
feature though (I can't think of any even though I made that 
feature request).
    
    
More information about the Digitalmars-d
mailing list