template/non-template method name conflict
    Michael Hewitt 
    dlangassist at gmail.com
       
    Mon Sep 17 10:47:51 PDT 2007
    
    
  
Hello -
I'm learning D and a friend pointed me at this newsgroup.  Please let me know if this is not an appropriate place for these sorts of questions.  My question is whether it is possible to have both templated and nontemplated methods with the same name in the same class.  A specific example of two methods that trigger a conflict is below.  Clearly in this case, an instance of the template has no chance of ever conflicting with the non-templated method signature. 
Thanks,
- Mike
  void contains(char[] expected, char[] actualText)
  {
  }
  void contains(T)(T expected, T[] array)
  {
  }
    
    
More information about the Digitalmars-d-learn
mailing list