[Python-3000] Python/C++ question
Giovanni Bajo
rasky at develer.com
Sun Dec 10 11:54:58 CET 2006
Martin v. Löwis wrote:
>> However, I was thinking - if you remove all of the ABI-breaking features
>> of C++, such as virtual functions, name mangling, RTTI, exceptions, and
>> so on, its still a pretty nice language compared to C - you still have
>> things like namespaces, constructors/destructors (especially nice for
>> stack-local objects), overloadable type conversion, automatic
>> upcasting/downcasting, references, plus you don't have to keep repeating
>> the word 'struct' everywhere.
To me, the killer feature would be that in C++ you can implement a smart
pointer which takes care of incref/decref automatically for 99% of the code.
This would be a terrific tool for the extension/core writers.
--
Giovanni Bajo
More information about the Python-3000
mailing list