[TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages

Roy Smith roy at panix.com
Fri Apr 19 12:02:00 EDT 2013


In article <mailman.824.1366386029.3114.python-list at python.org>,
 Chris Angelico <rosuav at gmail.com> wrote:

> On Sat, Apr 20, 2013 at 1:31 AM, Roy Smith <roy at panix.com> wrote:
> > #define private public
> > #define protected public
> > #include <whatever.h>
> 
> And:
> #define class struct

I suppose, while we're at it:

# define const ""

(I think that works, not sure).

PS: a great C++ interview question is, "What's the difference between a 
class and a struct?"  Amazing how few self-professed C++ experts have no 
clue.



More information about the Python-list mailing list