[Python-3000] Generic function PEP won't make it in time

Phillip J. Eby pje at telecommunity.com
Tue Apr 24 13:17:22 CEST 2007


At 11:17 PM 4/23/2007 -0700, Talin wrote:
>I'm not sure what Phillip is talking about here - C++ does not allow you 
>to instantiate a class that has non-overridden pure virtual methods, and 
>no pure virtual method can have a body. You cannot provide an 
>implementation for a pure virtual function.

I've never done it myself, but at least these guys say you can:

http://www.parashift.com/c++-faq-lite/abcs.html#faq-22.4
http://en.wikipedia.org/wiki/Virtual_function#Abstract_classes_and_pure_virtual_functions

But clearly, it's pretty obscure.



More information about the Python-3000 mailing list