[Issue 1657] New: Virtual template methods in classes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 10 06:14:57 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1657

           Summary: Virtual template methods in classes
           Product: D
           Version: 2.007
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: dhasenan at gmail.com


In a class, all methods are virtual by default, with the exception of static
methods and templated methods. That is, the following will not compile:

class AbstractCollection (T) {
   void addAll(U : T)(AbstractCollection!(U) collection);
}

Virtual templated methods should be allowed.


-- 



More information about the Digitalmars-d-bugs mailing list