Multiple Template Specialization Types (in D1)?
    Jarrett Billingsley 
    kb3ctd2 at yahoo.com
       
    Wed Jul  2 07:32:18 PDT 2008
    
    
  
"Steven Schveighoffer" <schveiguy at yahoo.com> wrote in message 
news:g4g2fg$a4l$1 at digitalmars.com...
>
> In that case, this should work, but generates extra code (which should be 
> inlined):
>
> public void Foo(T: char)(T arg)  {Foo_dwc!(T)(arg); }
> public void Foo(T: wchar)(T arg) {Foo_dwc!(T)(arg); }
> public void Foo(T: dchar)(T arg) {Foo_dwc!(T)(arg); }
>
> private void Foo_dwc(T)(T arg) {  }
>
> void main(char[][] args)
> {
> Foo('a');
> }
It does.  :) 
    
    
More information about the Digitalmars-d-learn
mailing list