Protected Methods and Python

Roy Smith roy at panix.com
Sun Apr 13 16:58:49 EDT 2003


Alex Martelli <aleax at aleax.it> wrote:
> #define private public
> #define protected public
> at the top of your .cpp file, before any #include, in most C++
> implementations

I'm confused.  You started out to show that C++'s "protected" keyword is 
evil, but what you've really shown is that C++'s preprocessor is evil.  
Can they both be true? :-)




More information about the Python-list mailing list